Update font and power icon.
This commit is contained in:
@@ -3,12 +3,12 @@ import { closeAllMenus } from "../bar.js";
|
||||
|
||||
const Bluetooth = () => {
|
||||
const btIcon = Widget.Label({
|
||||
label: bluetooth.bind("enabled").as((v) => v ? " " : " "),
|
||||
label: bluetooth.bind("enabled").as((v) => v ? "" : ""),
|
||||
class_name: "bar-bt_icon",
|
||||
});
|
||||
|
||||
const btText = Widget.Label({
|
||||
label: bluetooth.bind("enabled").as((v) => v ? "On" : "Off"),
|
||||
label: bluetooth.bind("enabled").as((v) => v ? " On" : " Off"),
|
||||
class_name: "bar-bt_label",
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const date = Variable("", {
|
||||
poll: [1000, 'date "+ %a %b %d %I:%M:%S %p"'],
|
||||
poll: [1000, 'date "+ %a %b %d %I:%M:%S %p"'],
|
||||
});
|
||||
|
||||
const Clock = () => {
|
||||
|
||||
@@ -31,14 +31,14 @@ const Media = () => {
|
||||
|
||||
const getIconForPlayer = (playerName) => {
|
||||
const windowTitleMap = [
|
||||
["Mozilla Firefox", ""],
|
||||
["Microsoft Edge", ""],
|
||||
["(.*)Discord(.*)", ""],
|
||||
["Plex", " Plex"],
|
||||
["(.*) Spotify Free", ""],
|
||||
["(.*)Spotify Premium", ""],
|
||||
["Spotify", ""],
|
||||
["(.*)", ""],
|
||||
["Mozilla Firefox", " "],
|
||||
["Microsoft Edge", " "],
|
||||
["(.*)Discord(.*)", " "],
|
||||
["Plex", " "],
|
||||
["(.*) Spotify Free", " "],
|
||||
["(.*)Spotify Premium", " "],
|
||||
["Spotify", " "],
|
||||
["(.*)", " "],
|
||||
];
|
||||
|
||||
const foundMatch = windowTitleMap.find((wt) =>
|
||||
|
||||
@@ -23,6 +23,7 @@ const Network = () => {
|
||||
|
||||
return {
|
||||
component: Widget.Box({
|
||||
vpack: "center",
|
||||
class_name: "bar-network",
|
||||
children: network
|
||||
.bind("primary")
|
||||
|
||||
@@ -3,9 +3,9 @@ export const Power = () => {
|
||||
component: Widget.Box({
|
||||
child: Widget.Button({
|
||||
class_name: "bar-powermenu",
|
||||
child: Widget.Label({
|
||||
child: Widget.Icon({
|
||||
class_name: "bar-power_label",
|
||||
label: "⏻",
|
||||
icon: "system-shutdown-symbolic",
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
|
||||
@@ -26,17 +26,20 @@ const Volume = () => {
|
||||
};
|
||||
|
||||
const volIcn = Widget.Label({
|
||||
vpack: "center",
|
||||
label: getIcon(),
|
||||
class_name: "bar-volume_icon",
|
||||
});
|
||||
|
||||
const volPct = Widget.Label({
|
||||
vpack: "center",
|
||||
label: audio.speaker.bind("volume").as((v) => ` ${Math.floor(v * 100)}%`),
|
||||
class_name: "bar-volume_percentage",
|
||||
});
|
||||
|
||||
return {
|
||||
component: Widget.Box({
|
||||
vpack: "center",
|
||||
class_name: "volume",
|
||||
children: [volIcn, volPct],
|
||||
}),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@import '../colors';
|
||||
|
||||
.bar-bt_icon {
|
||||
font-size: 1.2em;
|
||||
font-size: 1.15em;
|
||||
color: $sky;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
.bar-power_label {
|
||||
color: $red;
|
||||
margin-right: 0.2rem;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
* {
|
||||
all: unset;
|
||||
font-family: "JetBrains Mono Nerd Font";
|
||||
font-size: 1.15rem;
|
||||
font-weight: bold;
|
||||
font-family: "Ubuntu";
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
//general
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@import "../colors";
|
||||
|
||||
.media-indicator-container {
|
||||
min-width: 41rem;
|
||||
min-width: 40rem;
|
||||
min-height: 10rem;
|
||||
background: $mantle;
|
||||
border: 0.25rem solid $surface0;
|
||||
|
||||
12
style.css
12
style.css
@@ -1,8 +1,8 @@
|
||||
* {
|
||||
all: unset;
|
||||
font-family: "JetBrains Mono Nerd Font";
|
||||
font-size: 1.15rem;
|
||||
font-weight: bold;
|
||||
font-family: "Ubuntu";
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
menu {
|
||||
@@ -304,7 +304,7 @@ spinner:checked {
|
||||
}
|
||||
|
||||
.bar-bt_icon {
|
||||
font-size: 1.2em;
|
||||
font-size: 1.15em;
|
||||
color: #89dceb;
|
||||
}
|
||||
|
||||
@@ -387,7 +387,7 @@ spinner:checked {
|
||||
|
||||
.bar-power_label {
|
||||
color: #f38ba8;
|
||||
margin-right: 0.2rem;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.bar {
|
||||
@@ -896,7 +896,7 @@ window#powermenu .powermenu.box {
|
||||
}
|
||||
|
||||
.media-indicator-container {
|
||||
min-width: 41rem;
|
||||
min-width: 40rem;
|
||||
min-height: 10rem;
|
||||
background: #181825;
|
||||
border: 0.25rem solid #313244;
|
||||
|
||||
Reference in New Issue
Block a user