mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 21:04:21 +02:00
theme: adapt to "hidpi" screens
We use a scale factor. We are expected to have something sensible set for DPI.
This commit is contained in:
parent
52b70e4046
commit
b302b70787
2 changed files with 21 additions and 5 deletions
|
@ -130,7 +130,7 @@ local netdownicon = widget({ type = "imagebox" })
|
|||
netdownicon.image = image(beautiful.icons .. "/widgets/down.png")
|
||||
|
||||
local netgraph = awful.widget.graph()
|
||||
netgraph:set_width(80):set_height(16)
|
||||
netgraph:set_width(80):set_height(16 * theme.scale)
|
||||
netgraph:set_stack(true):set_scale(true)
|
||||
netgraph:set_border_color(beautiful.fg_widget_border)
|
||||
netgraph:set_stack_colors({ "#EF8171", "#cfefb3" })
|
||||
|
@ -263,7 +263,7 @@ for s = 1, screen.count() do
|
|||
fg = beautiful.fg_normal,
|
||||
bg = beautiful.bg_widget,
|
||||
position = "top",
|
||||
height = 16,
|
||||
height = 16 * theme.scale,
|
||||
})
|
||||
-- Add widgets to the wibox
|
||||
local on = function(n, what)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue