update styling
This commit is contained in:
parent
f8ac6c5177
commit
cb5d4fd76d
8 changed files with 78 additions and 88 deletions
85
style.scss
85
style.scss
|
|
@ -7,29 +7,44 @@ $surface1: #494d64;
|
|||
$surface2: #5b6078;
|
||||
|
||||
$rosewater: #f4dbd6;
|
||||
$flamingo: #dd7878;
|
||||
$pink: #ea76cb;
|
||||
$mauve: #8839ef;
|
||||
|
||||
* {
|
||||
color: $rosewater;
|
||||
:root {
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
color: $mauve;
|
||||
}
|
||||
|
||||
button {
|
||||
all: initial;
|
||||
|
||||
font-family: inherit;
|
||||
|
||||
label:hover {
|
||||
color: $base;
|
||||
background: $rosewater;
|
||||
}
|
||||
}
|
||||
|
||||
window.Bar {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
label {
|
||||
all: initial;
|
||||
|
||||
> centerbox {
|
||||
background: rgba($color: $base, $alpha: 0.75);
|
||||
border-bottom: 1px solid $rosewater;
|
||||
|
||||
> box {
|
||||
margin: 6px;
|
||||
& > * {
|
||||
margin: 0 4px;
|
||||
font-family: inherit;
|
||||
color: $mauve;
|
||||
padding: 4px 12px;
|
||||
background: $surface0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.no-styles {
|
||||
all: initial;
|
||||
}
|
||||
|
||||
.active {
|
||||
label {
|
||||
background: $rosewater;
|
||||
color: $base;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -46,14 +61,9 @@ window.Bar {
|
|||
}
|
||||
|
||||
.Pywal {
|
||||
label {
|
||||
font-size: 18px;
|
||||
padding: 4px 18px 4px 12px;
|
||||
border-radius: 8px;
|
||||
background: $surface0;
|
||||
|
||||
&:hover {
|
||||
background: $rosewater;
|
||||
color: $base;
|
||||
padding: 6px 16px 6px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -61,28 +71,6 @@ window.Bar {
|
|||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.Button {
|
||||
padding: 4px 12px;
|
||||
border-radius: 8px;
|
||||
background: $surface0;
|
||||
|
||||
&:hover {
|
||||
background: $rosewater;
|
||||
color: $base;
|
||||
}
|
||||
}
|
||||
|
||||
.Label {
|
||||
padding: 4px 12px;
|
||||
border-radius: 8px;
|
||||
background: $surface0;
|
||||
}
|
||||
|
||||
.Button-Active {
|
||||
background: $rosewater;
|
||||
color: $base;
|
||||
}
|
||||
|
||||
.WirePlumberMenu {
|
||||
contents {
|
||||
all: initial;
|
||||
|
|
@ -96,9 +84,20 @@ window.Bar {
|
|||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background: rgba($color: $base, $alpha: 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
window.Bar {
|
||||
background: transparent;
|
||||
|
||||
> centerbox {
|
||||
background: rgba($color: $base, $alpha: 0.75);
|
||||
border-bottom: 1px solid $rosewater;
|
||||
|
||||
> box {
|
||||
margin: 6px;
|
||||
& > * {
|
||||
margin: 2px 0;
|
||||
margin: 0 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ function Calendar() {
|
|||
return (
|
||||
<menubutton hexpand halign={Gtk.Align.END}>
|
||||
<label
|
||||
cssClasses={["Button"]}
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
label={time().as((t) => ` ${t}`)}
|
||||
tooltip_text={date().as((d) => ` ${d}`)}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ const hyprland = Hyprland.get_default();
|
|||
function Client() {
|
||||
return (
|
||||
<label
|
||||
cssClasses={["no-styles"]}
|
||||
label={bind(hyprland, "focused_client").as((fc) => fc.initialTitle)}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ function Internet() {
|
|||
return (
|
||||
<box>
|
||||
<label
|
||||
cssClasses={["Label"]}
|
||||
label={bind(network, "wifi").as(
|
||||
(w) => `${icon(w.strength)} ${w.strength}%`,
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,7 @@ const Memory = function () {
|
|||
(value) => Number(value),
|
||||
);
|
||||
|
||||
return (
|
||||
<label
|
||||
cssClasses={["Label"]}
|
||||
label={bind(usage).as((usage) => ` ${usage.toFixed()} %`)}
|
||||
/>
|
||||
);
|
||||
return <label label={bind(usage).as((usage) => ` ${usage.toFixed()}%`)} />;
|
||||
};
|
||||
|
||||
export default Memory;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ const SwayNC = function () {
|
|||
return (
|
||||
<button
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
cssClasses={["Button"]}
|
||||
onClicked={() => exec("swaync-client -t -sw")}
|
||||
label={options().as((options) => Icon(options?.alt ?? "none"))}
|
||||
></button>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const Tray = function () {
|
|||
}
|
||||
|
||||
return (
|
||||
<box cssClasses={["Tray", "Label"]}>
|
||||
<box cssClasses={["Tray"]}>
|
||||
{bind(trayItems).as((items) =>
|
||||
items.map((item) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ const WirePlumber = function () {
|
|||
label={bind(defaultSpeaker, "volume").as(
|
||||
(volume) => ` ${Math.floor(volume * 100)}%`,
|
||||
)}
|
||||
cssClasses={["Button"]}
|
||||
hasTooltip={true}
|
||||
tooltipText={bind(defaultSpeaker, "description").as(
|
||||
(description) => description,
|
||||
|
|
@ -41,8 +40,7 @@ const WirePlumber = function () {
|
|||
{speakers.map((speaker) => (
|
||||
<button
|
||||
cssClasses={bind(speaker, "is_default").as((is_default) => [
|
||||
"Button",
|
||||
is_default ? "Button-Active" : "",
|
||||
is_default ? "active" : "",
|
||||
])}
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
onClicked={() => speaker.set_is_default(true)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue