-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
130 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,156 +1,69 @@ | ||
/* system menu */ | ||
|
||
.system-menu-box { @include window; } | ||
.system-menu-window { | ||
@include window; | ||
background: rgba(0, 0, 0, .5); | ||
padding: .25rem; | ||
|
||
/* between net/bt and their arrows */ | ||
.separator { | ||
font-size: 1rem; | ||
} | ||
|
||
/* date & time */ | ||
.top-row { | ||
margin: 1rem 1.5rem 0; | ||
|
||
.time { font-size: 2rem; } | ||
|
||
.date-box { | ||
margin: 0 1rem; | ||
|
||
.date { | ||
background: unset; | ||
margin: 0 .5rem 0 0; | ||
padding: 0; | ||
} | ||
*.text { | ||
font-size: .9rem; | ||
} | ||
} | ||
|
||
/* wifi/bt/airplane button boxes */ | ||
.system-row { | ||
margin: .5rem .7rem; | ||
|
||
/* the airplane icon is not properly spaced */ | ||
.airplane-box button { | ||
padding: 1rem 3rem; | ||
} | ||
|
||
label { | ||
margin: 0 .1rem; | ||
> box { | ||
@include rounding; | ||
background: rgba(255, 255, 255, .15); | ||
margin: .25rem; | ||
padding: .25rem; | ||
} | ||
} | ||
|
||
/* wifi/bt/airplane buttons */ | ||
.element { | ||
@include rounding; | ||
background-color: $bg1; | ||
margin: .3rem; | ||
|
||
.enabled button { | ||
background: rgba(255, 255, 255, .2); | ||
label { color: $base; } | ||
} | ||
.disabled button { | ||
background: rgba(0, 0, 0, .1); | ||
label { color: white; } | ||
} | ||
|
||
.enabled .separator { background: $base; } | ||
.disabled .separator { background: white; } | ||
.toggle { | ||
margin: .2rem; | ||
|
||
button { | ||
padding: 1rem; | ||
|
||
label { | ||
font-size: 1.5rem; | ||
} | ||
|
||
:first-child { | ||
border-radius: 8px 0 0 8px; | ||
} | ||
|
||
:last-child { | ||
border-radius: 0 8px 8px 0; | ||
} | ||
margin-right: .5rem; | ||
} | ||
|
||
/* set wifi/bt colors and dim buttons when hovering */ | ||
&:hover { | ||
background-color: rgba(0, 0, 0, .1); | ||
} | ||
&.enabled button, | ||
&.connected button { | ||
background: $blue; | ||
.icon { color: black; } | ||
} | ||
} | ||
|
||
/* volume & brightness sliders */ | ||
.sliders { | ||
@include rounding; | ||
background-color: $bg1; | ||
margin: .5rem 1rem; | ||
padding: .6rem 1rem; | ||
|
||
scale { | ||
margin-right: -1rem; | ||
min-width: 21.5rem; | ||
|
||
trough { margin-right: 0; } | ||
margin-right: -.5rem; | ||
min-width: 20rem; | ||
} | ||
|
||
box { margin: .2rem 0; } | ||
label { font-size: 1.2rem; } | ||
} | ||
|
||
.system-row .text, .system-info-box .text { | ||
font-size: .9rem; | ||
} | ||
|
||
.volume-slider-box, | ||
.brightness-slider-box { | ||
trough { background-color: $base; } | ||
} | ||
|
||
.volume-bar highlight { | ||
@include rounding; | ||
background-image: linear-gradient(to right, $teal, $sky); | ||
} | ||
|
||
.brightness-slider-box scale highlight { | ||
@include rounding; | ||
background-image: linear-gradient(to right, $yellow, $peach); | ||
} | ||
trough { margin-left: 0; } | ||
|
||
/* battery & power button */ | ||
.bottom-row { | ||
margin: .5rem 1rem; | ||
|
||
.battery-icon { | ||
color: $green; | ||
font-size: 2rem; | ||
|
||
.low { color: $red; } | ||
.icon { | ||
font-size: 1.05rem; | ||
margin: 0 .3rem; | ||
} | ||
|
||
.battery-rate { color: $mauve; } | ||
|
||
.battery-status { | ||
color: $subtext0; | ||
margin: 0 .5rem; | ||
.volume highlight { | ||
background-image: linear-gradient(to right, $teal, $sky); | ||
} | ||
|
||
button { | ||
background-color: $bg1; | ||
border-radius: 50%; | ||
margin-bottom: .1rem; | ||
padding: 0 .5rem; | ||
|
||
label { font-size: 1.5rem; } | ||
&:hover { background-color: $bg1; } | ||
.brightness highlight { | ||
background-image: linear-gradient(to right, $yellow, $peach); | ||
} | ||
} | ||
|
||
/* battery & power button */ | ||
.system-menu .battery { | ||
.icon { | ||
font-size: 1.5rem; | ||
|
||
.bt-connected { | ||
background-color: $blue; | ||
color: $crust; | ||
} | ||
&.low { color: $red; } | ||
} | ||
|
||
.net-connected { | ||
background-color: $mauve; | ||
color: $crust; | ||
* { transition: none; } | ||
.rate { color: #ccc; } | ||
.status { margin: 0 .5rem; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
(defwidget bluetooth [] | ||
(button | ||
:class "module-bt module icon" | ||
:class "module-bt module icon ${bluetooth.state == `connected` ? `enabled` : `disabled`}" | ||
:onclick "blueberry" ; clicking opens blueberry | ||
:onrightclick "scripts/bluetooth toggle" ; rightclick to turn bluetooth on/off | ||
:tooltip "${bluetooth.text} ${bluetooth.battery}" | ||
:style "color: ${bluetooth.color};" | ||
{bluetooth.icon})) | ||
{bluetooth.state == "connected" ? "" : bluetooth.state == "enabled" ? "" : ""})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
(defwidget net [] | ||
(button | ||
:class "module icon" | ||
:class "module ${net.state}" | ||
; forcefully open gnome-control-center in a non-GNOME environment | ||
:onclick "XDG_CURRENT_DESKTOP=GNOME gnome-control-center &" | ||
:tooltip {net.name} | ||
:style "color: ${net.color};" | ||
{net.icon})) | ||
:tooltip {net.text} | ||
(label | ||
:class "icon" | ||
:text {net.icon}))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.