Defaults documented

This commit is contained in:
Oversword 2022-06-08 23:26:15 +01:00
parent 176df39f4d
commit 08735bb2c9
2 changed files with 20 additions and 18 deletions

View file

@ -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`. * `font` - overall font. Defaults to `Roboto`.
### Layout Sheme ### Layout Sheme
* `user_area_width` - width of the user page container area * `user_area_width` - width of the user page container area. Defaults to 450.
* `power_area_width` - width of the power spage container area * `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") * `offset_slices` - vertical and horizontal offset for all groups of buttons (or "slices"). Defaults to 5.
* `padding_slices` - internal padding of all slices * `padding_slices` - internal padding of all slices. Defaults to 0.
* `spacing_slices` - spacing between all slices * `spacing_slices` - spacing between all slices. Defaults to 3.
* `skew_slices` - skew (angle) of all slices * `skew_slices` - skew (angle) of all slices. Defaults to 32.
* `image_padding` - image padding for all images * `image_padding` - image padding for all images. Defaults to 2.
* `spacing_item` - spacing between all types of list item * `spacing_item` - spacing between all types of list item. Defaults to 2.
* `padding_item` - internal padding of all types of list item * `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). 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).

View file

@ -19,13 +19,15 @@ Item
* Defaults / Fallbacks * Defaults / Fallbacks
* *
* * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * */
property int defaultSkewSlices: 32 property int defaultSkewSlices: 32
property int defaultPaddingSlices: 0 property int defaultPaddingSlices: 0
property int defaultSpacingSlices: 3 property int defaultSpacingSlices: 3
property int defaultOffsetSlices: 5 property int defaultOffsetSlices: 5
property int defaultSpacingItem: 2 property int defaultSpacingItem: 2
property int defaultPaddingItem: 2 property int defaultPaddingItem: 2
property int defaultImagePadding: 2 property int defaultImagePadding: 2
property int defaultUserAreaWidth: 450
property int defaultPowerAreaWidth: 370
/* * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * *
@ -38,12 +40,12 @@ Item
property int userAreaWidth: property int userAreaWidth:
{ {
if (not_null(config.user_area_width)) return config.user_area_width if (not_null(config.user_area_width)) return config.user_area_width
else return 450 else return defaultUserAreaWidth
} }
property int powerAreaWidth: property int powerAreaWidth:
{ {
if (not_null(config.power_area_width)) return config.power_area_width if (not_null(config.power_area_width)) return config.power_area_width
else return 370 else return defaultPowerAreaWidth
} }
// Offset // Offset
property int offsetSlices: property int offsetSlices: