From 08735bb2c922256a0a5d2adee26cc67f5e15c13a Mon Sep 17 00:00:00 2001 From: Oversword Date: Wed, 8 Jun 2022 23:26:15 +0100 Subject: [PATCH] Defaults documented --- README.md | 18 +++++++++--------- slice/SizeScheme.qml | 20 +++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 36f1fcc..e4cd390 100644 --- a/README.md +++ b/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). diff --git a/slice/SizeScheme.qml b/slice/SizeScheme.qml index 10861f0..2ae3453 100644 --- a/slice/SizeScheme.qml +++ b/slice/SizeScheme.qml @@ -19,13 +19,15 @@ Item * Defaults / Fallbacks * * * * * * * * * * * * * * * * * * */ - property int defaultSkewSlices: 32 - property int defaultPaddingSlices: 0 - property int defaultSpacingSlices: 3 - property int defaultOffsetSlices: 5 - property int defaultSpacingItem: 2 - property int defaultPaddingItem: 2 - property int defaultImagePadding: 2 + property int defaultSkewSlices: 32 + property int defaultPaddingSlices: 0 + property int defaultSpacingSlices: 3 + property int defaultOffsetSlices: 5 + 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: