Skip to content

Commit 6b79f40

Browse files
authored
Merge pull request #20 from typester/feature/eww-example
update image and example
2 parents 8483381 + 2b562af commit 6b79f40

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

examples/eww/eww-bar.png

1.64 KB
Loading

examples/eww/eww.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
* {
22
all: unset;
33
font-family: "Terminess Nerd Font Propo";
4-
font-size: 12pt;
4+
font-size: 11pt;
55
}
66

77
.bar {
@@ -15,13 +15,18 @@
1515

1616
.arch-logo {
1717
//color: #1793d0;
18-
margin-left: 6px;
18+
margin-left: 12px;
1919
font-size: 16px;
2020
font-weight: normal;
2121
}
2222

23+
.sep {
24+
color: #999;
25+
}
26+
2327
.taglist {
2428
margin-left: 20px;
29+
margin-right: 10px;
2530

2631
.focused {
2732
background-color: #fefefe;

examples/eww/eww.yuck

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
(defwidget tag [index focused-tags urgent-tags view-tags]
3838
(box :class `${urgent-tags[index] ? "urgent" : focused-tags[index] ? "focused" : ""}`
3939
(overlay
40-
(box :width 32 :height 18)
40+
(box :width 28 :height 18)
4141
(literal :content `${view-tags[index] ?
4242
'(box :halign "start" :valign "start"
4343
(box :class "occupied" :width 7 :height 7))' : ""}`)
@@ -47,10 +47,11 @@
4747
(box :orientation "h" :halign "start" :hexpand true :space-evenly false
4848
(label :text "" :class "arch-logo")
4949
(river-tags :focused-tags focused-tags :urgent-tags urgent-tags :view-tags view-tags)
50+
(label :text "|" :class "sep"))
5051
(focused-view)))
5152

5253
(defwidget bar-right []
53-
(box :orientation "h" :halign "end" :class "bar-right"
54+
(box :orientation "h" :halign "end" :valign "center" :class "bar-right"
5455
(systray :icon-size 16)))
5556

5657
(defwidget bar [focused-tags urgent-tags view-tags]
@@ -63,7 +64,7 @@
6364
:geometry (geometry :x "0"
6465
:y "0"
6566
:width "100%"
66-
:height "32px"
67+
:height "24px"
6768
:anchor "top center")
6869
:stacking "fg"
6970
:exclusive true
@@ -77,7 +78,7 @@
7778
:geometry (geometry :x "0"
7879
:y "0"
7980
:width "100%"
80-
:height "32px"
81+
:height "24px"
8182
:anchor "top center")
8283
:stacking "fg"
8384
:exclusive true

0 commit comments

Comments
 (0)