mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-06-07 11:13:44 +02:00
refactor: eww control panel
This commit is contained in:
parent
3924bc9397
commit
52100e0ece
12 changed files with 31 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
||||||
@mixin widget() {
|
@mixin widget() {
|
||||||
padding: 6px;
|
padding: 0.6em;
|
||||||
margin: 4px 2px;
|
margin: 4px 2px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: $surface0;
|
background-color: $surface0;
|
||||||
|
@ -9,14 +9,13 @@
|
||||||
@include widget;
|
@include widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controlpanel-widget {
|
.panel-widget {
|
||||||
@include widget;
|
@include widget;
|
||||||
margin: 6px;
|
margin: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin icon() {
|
@mixin icon() {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
padding: 2px 0px;
|
|
||||||
font-family: "Symbols Nerd Font";
|
font-family: "Symbols Nerd Font";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspace {
|
.workspace {
|
||||||
margin: 4px 8px;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
margin: 0px 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspacething {
|
.workspacething {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.controlpanelwindow {
|
.control-panel {
|
||||||
|
padding: 0.4em;
|
||||||
background-color: $base;
|
background-color: $base;
|
||||||
padding: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.userinfo label {
|
.userinfo label {
|
||||||
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
.titlesel {
|
.titlesel {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
// font-weight: bold;
|
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
color: $base;
|
color: $base;
|
|
@ -3,11 +3,11 @@
|
||||||
@import "./assets/scss/native";
|
@import "./assets/scss/native";
|
||||||
@import "./assets/scss/global";
|
@import "./assets/scss/global";
|
||||||
@import "./assets/scss/modules";
|
@import "./assets/scss/modules";
|
||||||
|
@import "./assets/scss/components";
|
||||||
|
|
||||||
@import "./assets/scss/widgets/revealer.scss";
|
@import "./assets/scss/windows/control-panel";
|
||||||
|
@import "./assets/scss/windows/vertical-bar";
|
||||||
|
|
||||||
@import "./assets/scss/windows/vbar.scss";
|
|
||||||
@import "./assets/scss/windows/panel.scss";
|
|
||||||
@import "./src/dashboard/styles.scss";
|
@import "./src/dashboard/styles.scss";
|
||||||
@import "./src/dock/styles.scss";
|
@import "./src/dock/styles.scss";
|
||||||
@import "./src/desktop/styles.scss";
|
@import "./src/desktop/styles.scss";
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
(include "./src/-modules/_media.yuck")
|
(include "./src/-modules/_media.yuck")
|
||||||
|
|
||||||
(include "./src/windows/_vertical-bar.yuck")
|
(include "./src/windows/_vertical-bar.yuck")
|
||||||
(include "./src/windows/panel/main.yuck")
|
(include "./src/windows/_control-panel.yuck")
|
||||||
|
|
||||||
(include "./setups.yuck")
|
(include "./setups.yuck")
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
:stacking "overlay"
|
:stacking "overlay"
|
||||||
:monitor 0
|
:monitor 0
|
||||||
|
|
||||||
(control_widget))
|
(ControlPanel))
|
||||||
|
|
||||||
(defwindow bar
|
(defwindow bar
|
||||||
:geometry
|
:geometry
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
:class "workspaces"
|
:class "workspaces"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
|
:spacing 6
|
||||||
|
|
||||||
(for workspace in {workspacesJson}
|
(for workspace in {workspacesJson}
|
||||||
(button
|
(button
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
(defwidget control_widget []
|
(defwidget ControlPanel []
|
||||||
(box
|
(box
|
||||||
:class "controlpanelwindow"
|
:class "control-panel"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:valign "fill"
|
:valign "fill"
|
||||||
:vexpand true
|
:vexpand true
|
||||||
|
|
||||||
(user)
|
(user)
|
||||||
(chooser)
|
(chooser)
|
||||||
; (weather)
|
; (weather)
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:halign "fill"
|
:halign "fill"
|
||||||
:height 60
|
:height 60
|
||||||
:class "controlpanel-widget"
|
:class "panel-widget"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(box
|
(box
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
|
@ -205,7 +206,7 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:height 140
|
:height 140
|
||||||
:width 320
|
:width 320
|
||||||
:class "controlpanel-widget"
|
:class "panel-widget"
|
||||||
:valign "start"
|
:valign "start"
|
||||||
:halign "fill"
|
:halign "fill"
|
||||||
:hexpand true
|
:hexpand true
|
||||||
|
@ -229,7 +230,7 @@
|
||||||
:halign "fill"
|
:halign "fill"
|
||||||
:valign "fill"
|
:valign "fill"
|
||||||
:vexpand true
|
:vexpand true
|
||||||
:class "controlpanel-widget"
|
:class "panel-widget"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
|
|
||||||
(box
|
(box
|
||||||
|
@ -342,7 +343,7 @@
|
||||||
(defwidget timer[]
|
(defwidget timer[]
|
||||||
(box
|
(box
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:class "controlpanel-widget"
|
:class "panel-widget"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:width 180
|
:width 180
|
||||||
:valign "fill"
|
:valign "fill"
|
||||||
|
@ -359,7 +360,7 @@
|
||||||
(box
|
(box
|
||||||
:valign "fill"
|
:valign "fill"
|
||||||
:halign "fill"
|
:halign "fill"
|
||||||
:class "controlpanel-widget"
|
:class "panel-widget"
|
||||||
:hexpand true
|
:hexpand true
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
(bigvol)
|
(bigvol)
|
||||||
|
@ -465,7 +466,7 @@
|
||||||
|
|
||||||
(defwidget quote []
|
(defwidget quote []
|
||||||
(box
|
(box
|
||||||
:class "quotewid controlpanel-widget"
|
:class "quotewid panel-widget"
|
||||||
:halign "fill"
|
:halign "fill"
|
||||||
:valign "fill"
|
:valign "fill"
|
||||||
:vexpand true
|
:vexpand true
|
||||||
|
@ -487,7 +488,7 @@
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:halign "fill"
|
:halign "fill"
|
||||||
:height h
|
:height h
|
||||||
:class { pcover != "" ? "mpdcover" : "controlpanel-widget"}
|
:class { pcover != "" ? "mpdcover" : "panel-widget"}
|
||||||
:style "background-image: url('${pcover}')"
|
:style "background-image: url('${pcover}')"
|
||||||
:visible {permashow ? true : pcover != "" })
|
:visible {permashow ? true : pcover != "" })
|
||||||
(box
|
(box
|
|
@ -7,7 +7,7 @@
|
||||||
(revealer
|
(revealer
|
||||||
:transition "slideleft"
|
:transition "slideleft"
|
||||||
:reveal revealControlpanel
|
:reveal revealControlpanel
|
||||||
(control_widget))
|
(ControlPanel))
|
||||||
|
|
||||||
(centerbox
|
(centerbox
|
||||||
:class "vbar"
|
:class "vbar"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
(Logo)
|
(Logo)
|
||||||
(Workspaces)
|
(Workspaces)
|
||||||
(hiddenctl)
|
;; (hiddenctl)
|
||||||
))
|
))
|
||||||
|
|
||||||
(defwidget Middle []
|
(defwidget Middle []
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
;; (systemtray)
|
;; (systemtray)
|
||||||
(Language)
|
(Language)
|
||||||
(sliders)
|
(Sliders)
|
||||||
(Clock)
|
(Clock)
|
||||||
;; (battery)
|
;; (battery)
|
||||||
))
|
))
|
||||||
|
@ -118,12 +118,12 @@
|
||||||
:transition "slidedown"
|
:transition "slidedown"
|
||||||
))))
|
))))
|
||||||
|
|
||||||
(defwidget sliders []
|
(defwidget Sliders []
|
||||||
(box
|
(box
|
||||||
:class "widget"
|
:class "widget"
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 5
|
:spacing 8
|
||||||
:valign "end"
|
:valign "end"
|
||||||
|
|
||||||
(button :onclick "alacritty -e nmtui" :tooltip wifi_essid
|
(button :onclick "alacritty -e nmtui" :tooltip wifi_essid
|
||||||
|
|
Loading…
Add table
Reference in a new issue