style(eww): Initial design
This commit is contained in:
parent
c6c0e33970
commit
6f57c1a670
2 changed files with 89 additions and 41 deletions
|
@ -1,21 +1,33 @@
|
||||||
|
// vi: et ts=4 sw=4
|
||||||
* {
|
* {
|
||||||
all: unset;
|
all: unset;
|
||||||
font-family: 'monospace';
|
font-family: 'monospace';
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-feature-settings: 'tnum';
|
font-feature-settings: 'tnum';
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// >> bg
|
||||||
|
$bg-100: #434758;
|
||||||
|
$bg-300: #2A3039;
|
||||||
|
$bg-500: #0E1418; // base
|
||||||
|
|
||||||
|
$bg-radius: 8px;
|
||||||
|
$bg-margin: 4px;
|
||||||
|
// << bg
|
||||||
|
|
||||||
/** tooltip!! **/
|
/** tooltip!! **/
|
||||||
tooltip.background {
|
tooltip {
|
||||||
background-color: #0f0f17;
|
.background {
|
||||||
font-size: 18;
|
background-color: #0f0f17;
|
||||||
border-radius: 10px;
|
font-size: 18;
|
||||||
color: #bfc9db;
|
border-radius: 10px;
|
||||||
}
|
color: #bfc9db;
|
||||||
|
}
|
||||||
|
|
||||||
tooltip label {
|
label {
|
||||||
margin: 6px;
|
margin: 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.csd.background.popup { /* SysTray popup */
|
.csd.background.popup { /* SysTray popup */
|
||||||
|
@ -25,47 +37,82 @@ tooltip label {
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menuitem {
|
||||||
|
-gtk-dpi: 16;
|
||||||
|
}
|
||||||
|
|
||||||
menuitem:hover {
|
menuitem:hover {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar {
|
.bar {
|
||||||
background-color: rgba(43, 48, 59, 1);
|
background: $bg-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.middle {
|
||||||
|
.clock label {
|
||||||
|
background: $bg-300;
|
||||||
|
margin: $bg-margin 0px;
|
||||||
|
padding: 0 13px;
|
||||||
|
border-radius: $bg-radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.end {
|
.end {
|
||||||
> box {
|
> box {
|
||||||
padding: 0 8px;
|
|
||||||
|
|
||||||
> label:first-child {
|
widget > image {
|
||||||
padding-right: 16px;
|
background: $bg-300;
|
||||||
}
|
margin: $bg-margin 0px;
|
||||||
}
|
padding: 0 6px;
|
||||||
|
}
|
||||||
|
|
||||||
label:last-child {
|
widget:first-child > image {
|
||||||
margin-right: 12px;
|
border-radius: $bg-radius 0px 0px $bg-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
box label:last-child {
|
widget:last-child > image {
|
||||||
margin-left: 12px;
|
border-radius: 0px $bg-radius $bg-radius 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> label:first-child {
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
label:last-child {
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
box label:last-child {
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspaces button {
|
.workspaces {
|
||||||
label {
|
button:first-child label {
|
||||||
padding: 0 13px;
|
border-radius: $bg-radius 0px 0px $bg-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
button:last-child label {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
border-radius: 0px $bg-radius $bg-radius 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
button {
|
||||||
background: rgba(0, 0, 0, 0.4);
|
min-height: 13px;
|
||||||
}
|
|
||||||
|
|
||||||
&:hover, &.active {
|
label {
|
||||||
box-shadow: inset 0 -3px #FAA14F;
|
background: $bg-300;
|
||||||
}
|
margin: $bg-margin 0px;
|
||||||
|
padding: 0 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover, &.active {
|
||||||
|
label {
|
||||||
|
background: #1CA2DA;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,8 @@
|
||||||
(workspaces))
|
(workspaces))
|
||||||
|
|
||||||
(defwidget middle []
|
(defwidget middle []
|
||||||
(clock))
|
(box :class "middle"
|
||||||
|
(clock)))
|
||||||
|
|
||||||
(defwidget end []
|
(defwidget end []
|
||||||
(box :halign "end"
|
(box :halign "end"
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
id))))
|
id))))
|
||||||
|
|
||||||
(defwidget clock []
|
(defwidget clock []
|
||||||
(eventbox :onclick `eww update dtfull=${!dtfull}`
|
(eventbox :class "clock" :onclick `eww update dtfull=${!dtfull}`
|
||||||
(label :text {dtfull ? datetime.full : datetime.date})))
|
(label :text {dtfull ? datetime.full : datetime.date})))
|
||||||
|
|
||||||
(defwidget pair [icon text]
|
(defwidget pair [icon text]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue