Defaults documented
This commit is contained in:
parent
176df39f4d
commit
08735bb2c9
2 changed files with 20 additions and 18 deletions
18
README.md
18
README.md
|
|
@ -45,15 +45,15 @@ There are also many font options, so there is now [font scheme](https://github.c
|
|||
* `font` - overall font. Defaults to `Roboto`.
|
||||
|
||||
### Layout Sheme
|
||||
* `user_area_width` - width of the user page container area
|
||||
* `power_area_width` - width of the power spage container area
|
||||
* `offset_slices` - vertical and horizontal offset for all groups of buttons (or "slices")
|
||||
* `padding_slices` - internal padding of all slices
|
||||
* `spacing_slices` - spacing between all slices
|
||||
* `skew_slices` - skew (angle) of all slices
|
||||
* `image_padding` - image padding for all images
|
||||
* `spacing_item` - spacing between all types of list item
|
||||
* `padding_item` - internal padding of all types of list item
|
||||
* `user_area_width` - width of the user page container area. Defaults to 450.
|
||||
* `power_area_width` - width of the power spage container area. Defaults to 370.
|
||||
* `offset_slices` - vertical and horizontal offset for all groups of buttons (or "slices"). Defaults to 5.
|
||||
* `padding_slices` - internal padding of all slices. Defaults to 0.
|
||||
* `spacing_slices` - spacing between all slices. Defaults to 3.
|
||||
* `skew_slices` - skew (angle) of all slices. Defaults to 32.
|
||||
* `image_padding` - image padding for all images. Defaults to 2.
|
||||
* `spacing_item` - spacing between all types of list item. Defaults to 2.
|
||||
* `padding_item` - internal padding of all types of list item. Defaults to 2.
|
||||
|
||||
Info about other layers can be found on wiki: [layer 2](https://github.com/RadRussianRus/sddm-slice/wiki/Font-Scheme-Layer-2), [layer 3](https://github.com/RadRussianRus/sddm-slice/wiki/Font-Scheme-Layer-3).
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ Item
|
|||
property int defaultSpacingItem: 2
|
||||
property int defaultPaddingItem: 2
|
||||
property int defaultImagePadding: 2
|
||||
property int defaultUserAreaWidth: 450
|
||||
property int defaultPowerAreaWidth: 370
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * *
|
||||
|
|
@ -38,12 +40,12 @@ Item
|
|||
property int userAreaWidth:
|
||||
{
|
||||
if (not_null(config.user_area_width)) return config.user_area_width
|
||||
else return 450
|
||||
else return defaultUserAreaWidth
|
||||
}
|
||||
property int powerAreaWidth:
|
||||
{
|
||||
if (not_null(config.power_area_width)) return config.power_area_width
|
||||
else return 370
|
||||
else return defaultPowerAreaWidth
|
||||
}
|
||||
// Offset
|
||||
property int offsetSlices:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue