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:
Rubin Bhandari
2024-11-08 15:16:21 +05:45
committed by GitHub
parent 9ae59034fa
commit 3cc3fa5d42
8 changed files with 68 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import { BoxWidget } from 'lib/types/widget';
import { capitalizeFirstLetter } from 'lib/utils';
const network = await Service.import('network');
@@ -49,9 +50,7 @@ const Ethernet = (): BoxWidget => {
Widget.Label({
hpack: 'start',
class_name: 'connection-status dim',
label:
network.wired.internet.charAt(0).toUpperCase() +
network.wired.internet.slice(1),
label: capitalizeFirstLetter(network.wired.internet),
}),
],
}),

View File

@@ -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`,
}),
];