Added configuration option to change font
This commit is contained in:
parent
9982097de4
commit
765cfaed03
9 changed files with 21 additions and 9 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
slice/theme.conf.user
|
||||||
10
README.md
10
README.md
|
|
@ -7,11 +7,19 @@ Simple dark SDDM theme.
|
||||||
1. Install QML modules:
|
1. Install QML modules:
|
||||||
* Qt Graphical Effects
|
* Qt Graphical Effects
|
||||||
* Qt Quick Controls
|
* 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`
|
3. `git clone https://github.com/RadRussianRus/sddm-slice.git`
|
||||||
4. `cp -r sddm-slice/slice /usr/share/sddm/themes/slice`
|
4. `cp -r sddm-slice/slice /usr/share/sddm/themes/slice`
|
||||||
5. Open `/etc/sddm.conf` and put `Current=slice` in `[Theme]` section
|
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
|
## License
|
||||||
|
|
||||||
Icons: [Material Design Icons](https://github.com/Templarian/MaterialDesign)
|
Icons: [Material Design Icons](https://github.com/Templarian/MaterialDesign)
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ Item
|
||||||
|
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
pointSize: 28
|
pointSize: 28
|
||||||
bold: true
|
bold: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ Item
|
||||||
|
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
pointSize: 28
|
pointSize: 28
|
||||||
bold: true
|
bold: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ Item
|
||||||
|
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
pointSize: 28
|
pointSize: 28
|
||||||
bold: true
|
bold: true
|
||||||
}
|
}
|
||||||
|
|
@ -59,7 +59,7 @@ Item
|
||||||
y: userName == "" ? 5 : 36
|
y: userName == "" ? 5 : 36
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
pointSize: userName == "" ? 36 : 20
|
pointSize: userName == "" ? 36 : 20
|
||||||
bold: userName == ""
|
bold: userName == ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@ Item
|
||||||
|
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
bold: true
|
bold: true
|
||||||
pointSize: 18
|
pointSize: 18
|
||||||
}
|
}
|
||||||
|
|
@ -313,7 +313,7 @@ Item
|
||||||
|
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
bold: true
|
bold: true
|
||||||
pointSize: 18
|
pointSize: 18
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ Item
|
||||||
|
|
||||||
font
|
font
|
||||||
{
|
{
|
||||||
family: "Roboto"
|
family: config.font
|
||||||
bold: true
|
bold: true
|
||||||
pointSize: fontSize
|
pointSize: fontSize
|
||||||
capitalization: Font.AllUppercase
|
capitalization: Font.AllUppercase
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,5 @@ Type=sddm-theme
|
||||||
Website=https://github.com/RadRussianRus/slice-sddm
|
Website=https://github.com/RadRussianRus/slice-sddm
|
||||||
Version=1.0
|
Version=1.0
|
||||||
MainScript=Main.qml
|
MainScript=Main.qml
|
||||||
TranslationsDirectory=translations
|
TranslationsDirectory=translations
|
||||||
|
ConfigFile=theme.conf
|
||||||
2
slice/theme.conf
Normal file
2
slice/theme.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[General]
|
||||||
|
font=Roboto
|
||||||
Loading…
Add table
Reference in a new issue