feat: launcher icon auto detect from os name (#413)
* feat: launcher icon auto detect from os name * feat: add more * fix: revamp distro icon * feat: on hover only show actions if available on notifications (#396) * feat: on hover only show actions if available on notifications * feat: on hover only show actions if available on notifications * fix: make the change configurable * fix: remove unneeded op * Added the ability to scale a popover. (#443) * Added the ability to scale a popover. * Removed redundant code * Provide a cli command to clear notifications. (#444) * Added a cpu temperature custom module. (#446) * Added a CPU Temperature module. * Update defauls and add wiki link. * Move celsius to fahr conversion to method. * fix: move distoicons , use capitalizeLetter func * fix: lint * Rename dissto.ts to distro.ts * Update lib/utils.ts --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { PowerOptions } from 'lib/types/options';
|
||||
import { GButton } from 'lib/types/widget';
|
||||
import { capitalizeFirstLetter } from 'lib/utils';
|
||||
import options from 'options';
|
||||
import powermenu from '../power/helpers/actions';
|
||||
import { GButton } from 'lib/types/widget';
|
||||
|
||||
const { confirmation, shutdown, logout, sleep, reboot, showLabel } = options.menus.power;
|
||||
|
||||
@@ -48,7 +49,7 @@ export const PowerButton = (action: PowerOptions): GButton => {
|
||||
Widget.Label({
|
||||
hpack: 'center',
|
||||
hexpand: true,
|
||||
label: action.charAt(0).toUpperCase() + action.slice(1),
|
||||
label: capitalizeFirstLetter(action),
|
||||
className: `power-button-label ${action}-label show-label`,
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user