sidebar: remove settings button

since gnome-control-center is really broken outside gnome
This commit is contained in:
end-4
2024-08-15 20:32:39 +07:00
parent f8bee78014
commit 1abe019718
2 changed files with 1 additions and 16 deletions
@@ -224,19 +224,6 @@ export const ModuleIdleInhibitor = (props = {}) => Widget.Button({ // TODO: Make
...props, ...props,
}); });
export const ModuleEditIcon = (props = {}) => Widget.Button({ // TODO: Make this work
...props,
className: 'txt-small sidebar-iconbutton',
onClicked: () => {
execAsync(['bash', '-c', 'XDG_CURRENT_DESKTOP="gnome" gnome-control-center', '&']);
App.closeWindow('sideright');
},
child: MaterialIcon('edit', 'norm'),
setup: button => {
setupCursorHover(button);
}
})
export const ModuleReloadIcon = (props = {}) => Widget.Button({ export const ModuleReloadIcon = (props = {}) => Widget.Button({
...props, ...props,
className: 'txt-small sidebar-iconbutton', className: 'txt-small sidebar-iconbutton',
+1 -3
View File
@@ -9,7 +9,6 @@ import {
ModuleNightLight, ModuleNightLight,
ModuleInvertColors, ModuleInvertColors,
ModuleIdleInhibitor, ModuleIdleInhibitor,
ModuleEditIcon,
ModuleReloadIcon, ModuleReloadIcon,
ModuleSettingsIcon, ModuleSettingsIcon,
ModulePowerIcon, ModulePowerIcon,
@@ -109,9 +108,8 @@ const timeRow = Box({
}, },
}), }),
Widget.Box({ hexpand: true }), Widget.Box({ hexpand: true }),
// ModuleEditIcon({ hpack: 'end' }), // TODO: Make this work
ModuleReloadIcon({ hpack: 'end' }), ModuleReloadIcon({ hpack: 'end' }),
ModuleSettingsIcon({ hpack: 'end' }), // ModuleSettingsIcon({ hpack: 'end' }), // Button does work, gnome-control-center is kinda broken
ModulePowerIcon({ hpack: 'end' }), ModulePowerIcon({ hpack: 'end' }),
] ]
}); });