Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
stict height of clock widget
Browse files Browse the repository at this point in the history
  • Loading branch information
RMTT committed Sep 16, 2020
1 parent 5446ea0 commit a92e5df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion theme/fly/layout/topbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function topbar:init(config)
startup:init({ height = self.height, screen = config.screen })
control_center:init({ height = self.height })
tasklist:init({ screen = config.screen, height = self.height })
clock:init({ bg = beautiful.topbar_bg })
clock:init({ bg = beautiful.topbar_bg, height = self.height * 0.7 })
systray:init({ screen = config.screen, width = self.width, height = self.height })
layoutbox:init({ height = self.height })
hotkeys_popup:init({})
Expand Down
9 changes: 5 additions & 4 deletions theme/fly/widget/clock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ local beautiful = require("beautiful")
local clock = {}

function clock:init(config)
clock.widget = wibox.widget{
wibox.widget{
format = "<span font='Alarm Clock 15'>%H:%M</span>",
widget = wibox.widget.textclock
clock.widget = wibox.widget {
wibox.widget {
format = "<span font='Alarm Clock 14'>%H:%M</span>",
widget = wibox.widget.textclock,
forced_height = config.height
},
bg = config.bg,
fg = "#000000",
Expand Down

0 comments on commit a92e5df

Please sign in to comment.