Preliminary implementation of border-less mode

Not yet functional but most ingredients are there
This commit is contained in:
Francesco Abbate
2021-04-10 19:35:57 +02:00
parent d6f2f1f0a4
commit 7531a0ddc8
6 changed files with 119 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
local core = require "core"
local style = require "core.style"
local StatusView = require "core.statusview"
local TitleView = StatusView:extend()
TitleView.separator = " "
function TitleView:new()
TitleView.super.new(self)
end
function TitleView:on_mouse_pressed()
core.set_active_view(core.last_active_view)
end
function TitleView:get_items()
local title = core.compose_window_title(core.window_title)
return {
style.text, style.icon_font, "g ", style.font, title,
}, {
style.text, style.icon_font, "_", TitleView.separator, "w", TitleView.separator, "W",
}
end
return TitleView