Model graph: theme toggle in the same pill as the switch and Export
This commit is contained in:
1 parent
82dd10253b
commit
27d1b4381c
2 files changed
+12
-9
No files matched your search
+1
-1
@@ -232,7 +232,7 @@ class GraphPage {
|
||||
exportButton.addEventListener('click', () => this.exportPng());
|
||||
this.themeButton.type = 'button';
|
||||
this.themeButton.setAttribute('role', 'switch');
|
||||
this.themeButton.append(el('span', 'ag-theme-icon'), el('span', 'ag-sr', 'Dark theme'));
|
||||
this.themeButton.append(el('span', 'ag-theme-track'), el('span', 'ag-theme-icon'), el('span', 'ag-sr', 'Dark theme'));
|
||||
this.themeButton.addEventListener('click', () => this.setTheme(currentTheme() === 'dark' ? 'light' : 'dark'));
|
||||
this.syncThemeButton();
|
||||
actions.append(sw, this.themeButton, exportButton);
|
||||
|
||||
Reference in new issue
Block a user