Updated weather and power button icons to use text-icons rather than system icons. (#232)
* Replace weather and power icons with nerdfont icons. * Update power icons for power dropdown menu.
This commit is contained in:
@@ -23,6 +23,13 @@ export const PowerButton = (action: PowerOptions) => {
|
||||
}
|
||||
};
|
||||
|
||||
const powerIconMap = {
|
||||
shutdown: "",
|
||||
reboot: "",
|
||||
logout: "",
|
||||
sleep: "",
|
||||
};
|
||||
|
||||
return Widget.Button({
|
||||
className: showLabel.bind("value").as(shwLbl => {
|
||||
return `power-menu-button ${action} ${!shwLbl ? "no-label" : ""}`;
|
||||
@@ -33,9 +40,9 @@ export const PowerButton = (action: PowerOptions) => {
|
||||
children: showLabel.bind("value").as(shwLbl => {
|
||||
if (shwLbl) {
|
||||
return [
|
||||
Widget.Icon({
|
||||
icon: icons.powermenu[action],
|
||||
className: `power-button-icon ${action}-icon`,
|
||||
Widget.Label({
|
||||
label: powerIconMap[action],
|
||||
className: `power-button-icon ${action}-icon txt-icon`,
|
||||
}),
|
||||
Widget.Label({
|
||||
hpack: "center",
|
||||
@@ -46,9 +53,9 @@ export const PowerButton = (action: PowerOptions) => {
|
||||
];
|
||||
}
|
||||
return [
|
||||
Widget.Icon({
|
||||
icon: icons.powermenu[action],
|
||||
className: `power-button-icon ${action}-icon no-label`,
|
||||
Widget.Label({
|
||||
label: powerIconMap[action],
|
||||
className: `power-button-icon ${action}-icon no-label txt-icon`,
|
||||
}),
|
||||
];
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user