Added configuration option to change font

This commit is contained in:
Eric Kotato 2018-03-05 14:20:14 +03:00
parent 9982097de4
commit 765cfaed03
9 changed files with 21 additions and 9 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
slice/theme.conf.user

View file

@ -7,11 +7,19 @@ Simple dark SDDM theme.
1. Install QML modules:
* Qt Graphical Effects
* Qt Quick Controls
2. Install Roboto font
2. Install Roboto font (optional, you can change to other font, see below)
3. `git clone https://github.com/RadRussianRus/sddm-slice.git`
4. `cp -r sddm-slice/slice /usr/share/sddm/themes/slice`
5. Open `/etc/sddm.conf` and put `Current=slice` in `[Theme]` section
## Configuration
Create file `theme.conf.user` in theme folder. See `slice/theme.conf` for reference.
### Available options
* `font` - changes overall font. Defaults to `Roboto`.
## License
Icons: [Material Design Icons](https://github.com/Templarian/MaterialDesign)

View file

@ -53,7 +53,7 @@ Item
font
{
family: "Roboto"
family: config.font
pointSize: 28
bold: true
}

View file

@ -21,7 +21,7 @@ Item
font
{
family: "Roboto"
family: config.font
pointSize: 28
bold: true
}

View file

@ -43,7 +43,7 @@ Item
font
{
family: "Roboto"
family: config.font
pointSize: 28
bold: true
}
@ -59,7 +59,7 @@ Item
y: userName == "" ? 5 : 36
font
{
family: "Roboto"
family: config.font
pointSize: userName == "" ? 36 : 20
bold: userName == ""
}

View file

@ -236,7 +236,7 @@ Item
font
{
family: "Roboto"
family: config.font
bold: true
pointSize: 18
}
@ -313,7 +313,7 @@ Item
font
{
family: "Roboto"
family: config.font
bold: true
pointSize: 18
}

View file

@ -200,7 +200,7 @@ Item
font
{
family: "Roboto"
family: config.font
bold: true
pointSize: fontSize
capitalization: Font.AllUppercase

View file

@ -8,4 +8,5 @@ Type=sddm-theme
Website=https://github.com/RadRussianRus/slice-sddm
Version=1.0
MainScript=Main.qml
TranslationsDirectory=translations
TranslationsDirectory=translations
ConfigFile=theme.conf

2
slice/theme.conf Normal file
View file

@ -0,0 +1,2 @@
[General]
font=Roboto