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:
|
||||
* 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)
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ Item
|
|||
|
||||
font
|
||||
{
|
||||
family: "Roboto"
|
||||
family: config.font
|
||||
pointSize: 28
|
||||
bold: true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Item
|
|||
|
||||
font
|
||||
{
|
||||
family: "Roboto"
|
||||
family: config.font
|
||||
pointSize: 28
|
||||
bold: true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 == ""
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ Item
|
|||
|
||||
font
|
||||
{
|
||||
family: "Roboto"
|
||||
family: config.font
|
||||
bold: true
|
||||
pointSize: fontSize
|
||||
capitalization: Font.AllUppercase
|
||||
|
|
|
|||
|
|
@ -9,3 +9,4 @@ Website=https://github.com/RadRussianRus/slice-sddm
|
|||
Version=1.0
|
||||
MainScript=Main.qml
|
||||
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