mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-25 15:56:54 +02:00
chore: control panel widget styles
This commit is contained in:
parent
49bd527e28
commit
bf192aa43f
5 changed files with 32 additions and 42 deletions
|
@ -1,25 +1,30 @@
|
|||
@import "mixin";
|
||||
@import "tokens";
|
||||
|
||||
.widget {
|
||||
@include widget;
|
||||
padding: get-token(padding, small);
|
||||
margin: get-token(margin, small);
|
||||
border-radius: get-token(border-radius);
|
||||
background-color: $surface0;
|
||||
}
|
||||
|
||||
.panel-widget {
|
||||
@include widget;
|
||||
@extend .widget;
|
||||
|
||||
margin: 6px;
|
||||
padding: get-token(padding);
|
||||
margin: get-token(margin, large);
|
||||
border-radius: get-token(border-radius);
|
||||
}
|
||||
|
||||
.icon {
|
||||
@include icon;
|
||||
font-size: get-token(font-sizes);
|
||||
font-family: "Symbols Nerd Font";
|
||||
}
|
||||
|
||||
.popup {
|
||||
@include popup;
|
||||
}
|
||||
|
||||
.border {
|
||||
border: 2px white solid;
|
||||
padding: get-token(padding, small);
|
||||
border-radius: get-token(border-radius);
|
||||
margin: get-token(margin);
|
||||
background-color: $surface1;
|
||||
}
|
||||
|
||||
button {
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
@import "tokens";
|
||||
|
||||
@mixin widget() {
|
||||
padding: get-token(padding, small);
|
||||
margin: get-token(margin);
|
||||
border-radius: get-token(border-radius);
|
||||
background-color: $surface0;
|
||||
}
|
||||
|
||||
@mixin icon() {
|
||||
font-size: get-token(font-sizes);
|
||||
font-family: "Symbols Nerd Font";
|
||||
}
|
||||
|
||||
@mixin popup() {
|
||||
padding: get-token(padding, small);
|
||||
border-radius: get-token(border-radius);
|
||||
margin: get-token(margin);
|
||||
background-color: $surface1;
|
||||
}
|
|
@ -1,30 +1,34 @@
|
|||
.clock {
|
||||
@include widget;
|
||||
@extend .widget;
|
||||
|
||||
font-size: get-token(font-sizes);
|
||||
}
|
||||
|
||||
.language {
|
||||
@include widget;
|
||||
@extend .widget;
|
||||
}
|
||||
|
||||
.logo {
|
||||
@include widget;
|
||||
@extend .widget;
|
||||
|
||||
label {
|
||||
@include icon;
|
||||
@extend .icon;
|
||||
|
||||
color: $accent;
|
||||
}
|
||||
}
|
||||
|
||||
.workspaces {
|
||||
@include widget;
|
||||
@extend .widget;
|
||||
|
||||
padding: 12px 6px;
|
||||
|
||||
* {
|
||||
transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 500ms;
|
||||
transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
border-radius: 4px;
|
||||
border-radius: 6px;
|
||||
margin: 0px 6px;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,12 +32,11 @@
|
|||
(defwidget toolbox []
|
||||
(eventbox
|
||||
:cursor "pointer"
|
||||
|
||||
(box
|
||||
:class "tricontrol unbarwidget"
|
||||
:class "tricontrol panel-widget"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:height 60
|
||||
:halign "fill"
|
||||
|
||||
(button :onclick "./scripts/pop colourpick" (label :text ""))
|
||||
(button :onclick "./scripts/pop scrop" (label :text ""))
|
||||
(button :onclick "~/.config/eww/themeswitch/scripts/pop" (label :text "")))))
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "start"
|
||||
:height 250
|
||||
:vexpand false
|
||||
|
||||
(Logo)
|
||||
(Workspaces)
|
||||
|
@ -38,7 +40,7 @@
|
|||
:valign "center"
|
||||
:height 200
|
||||
|
||||
(PlayerCtl)
|
||||
;; (PlayerCtl)
|
||||
))
|
||||
|
||||
(defwidget Bottom []
|
||||
|
|
Loading…
Add table
Reference in a new issue