hyprlock: add general remarks for widgets

This commit is contained in:
Vaxry 2024-02-19 23:01:39 +00:00
parent be3899a41a
commit 38c05383aa
1 changed files with 12 additions and 8 deletions

View File

@ -27,6 +27,11 @@ widget_name {
## 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
Draws a background image or fills with color.
@ -54,10 +59,11 @@ input-field {
inner_color = rgb(200, 200, 200)
font_color = rgb(10, 10, 10)
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.
halign = center # left, center, right, none
valign = center # top, center, bottom, none
position = 0, -20
halign = center
valign = center
}
```
@ -65,8 +71,6 @@ input-field {
Draws a label.
Label text supports [pango markup](https://docs.gtk.org/Pango/pango_markup.html).
```ini
label {
monitor =
@ -75,8 +79,8 @@ label {
font_size = 25
font_family = Noto Sans
position = 0, 80 # position is added to the halign and valign props. For absolute, use "none" in either.
halign = center # left, center, right, none
valign = center # top, center, bottom, none
position = 0, 80
halign = center
valign = center
}
```