omnibar change & conceptualization.
This commit is contained in:
parent
eff2a22018
commit
bcc7c827ab
9
sysdata/programs/sunset_server/README.md
Normal file
9
sysdata/programs/sunset_server/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Sunset Server
|
||||||
|
|
||||||
|
## Omnibar
|
||||||
|
The omnibar is a clone of the polybar concept and will be configured via lisp.
|
||||||
|
|
||||||
|
|
||||||
|
probably should be spawned in as a window with special permission to not draw window decorators
|
||||||
|
|
||||||
|
not drawing decorators could also function as a full screen of sorts if it resizes
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "sunset_server"
|
name = "sunset_server"
|
||||||
authors = ["koniifer"]
|
authors = ["able", "koniifer"]
|
||||||
|
|
||||||
[dependants.libraries]
|
[dependants.libraries]
|
||||||
|
|
||||||
|
|
5
sysdata/programs/sunset_server/omnibar.uil
Normal file
5
sysdata/programs/sunset_server/omnibar.uil
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
(meta height:(+ font_height 1))
|
||||||
|
|
||||||
|
(horizontal
|
||||||
|
(label last_pressed_key)
|
||||||
|
(seperator percent:10))
|
|
@ -83,7 +83,9 @@ main := fn(): int {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
pos := Vec2(uint).(1, screen.height - 21)
|
/* Omnibar */
|
||||||
|
omnibar_height := 21
|
||||||
|
pos := Vec2(uint).(1, screen.height - omnibar_height)
|
||||||
render_label_to_surface(screen, text_label, font, pos)
|
render_label_to_surface(screen, text_label, font, pos)
|
||||||
render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR)
|
render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue