hyprlock: add general remarks for widgets

This commit is contained in:
Vaxry 2024-02-19 23:01:39 +00:00
parent be3899a41a
commit 38c05383aa

View file

@ -27,6 +27,11 @@ widget_name {
## Widget List ## Widget List
### General remarks
- All rendered text supports [pango markup](https://docs.gtk.org/Pango/pango_markup.html).
- Positioning is done via halign, valign and position. Position is an added offset to the result of alignment.
- halign: `left`, `center`, `right`, `none`. valign: `top`, `center`, `bottom`, `none`
### Background ### Background
Draws a background image or fills with color. Draws a background image or fills with color.
@ -54,10 +59,11 @@ input-field {
inner_color = rgb(200, 200, 200) inner_color = rgb(200, 200, 200)
font_color = rgb(10, 10, 10) font_color = rgb(10, 10, 10)
fade_on_empty = true fade_on_empty = true
placeholder-text = <i>Input Password...</i> # Text rendered in the input box when it's empty.
position = 0, -20 # position is added to the halign and valign props. For absolute, use "none" in either. position = 0, -20
halign = center # left, center, right, none halign = center
valign = center # top, center, bottom, none valign = center
} }
``` ```
@ -65,8 +71,6 @@ input-field {
Draws a label. Draws a label.
Label text supports [pango markup](https://docs.gtk.org/Pango/pango_markup.html).
```ini ```ini
label { label {
monitor = monitor =
@ -75,8 +79,8 @@ label {
font_size = 25 font_size = 25
font_family = Noto Sans font_family = Noto Sans
position = 0, 80 # position is added to the halign and valign props. For absolute, use "none" in either. position = 0, 80
halign = center # left, center, right, none halign = center
valign = center # top, center, bottom, none valign = center
} }
``` ```