diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..277b22d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +slice/theme.conf.user \ No newline at end of file diff --git a/README.md b/README.md index e6803e0..e51bf45 100644 --- a/README.md +++ b/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) diff --git a/slice/LoopListPowerItem.qml b/slice/LoopListPowerItem.qml index 8d07552..bd9aa8b 100644 --- a/slice/LoopListPowerItem.qml +++ b/slice/LoopListPowerItem.qml @@ -53,7 +53,7 @@ Item font { - family: "Roboto" + family: config.font pointSize: 28 bold: true } diff --git a/slice/LoopListSessionItem.qml b/slice/LoopListSessionItem.qml index 0d6732a..fbbf245 100644 --- a/slice/LoopListSessionItem.qml +++ b/slice/LoopListSessionItem.qml @@ -21,7 +21,7 @@ Item font { - family: "Roboto" + family: config.font pointSize: 28 bold: true } diff --git a/slice/LoopListUserItem.qml b/slice/LoopListUserItem.qml index 2673346..b1e9415 100644 --- a/slice/LoopListUserItem.qml +++ b/slice/LoopListUserItem.qml @@ -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 == "" } diff --git a/slice/PageUsers.qml b/slice/PageUsers.qml index 06d5df8..8c4c35f 100644 --- a/slice/PageUsers.qml +++ b/slice/PageUsers.qml @@ -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 } diff --git a/slice/SlicedButton.qml b/slice/SlicedButton.qml index e96d6ca..4ae1c3b 100644 --- a/slice/SlicedButton.qml +++ b/slice/SlicedButton.qml @@ -200,7 +200,7 @@ Item font { - family: "Roboto" + family: config.font bold: true pointSize: fontSize capitalization: Font.AllUppercase diff --git a/slice/metadata.desktop b/slice/metadata.desktop index c6d90b9..53ec22c 100644 --- a/slice/metadata.desktop +++ b/slice/metadata.desktop @@ -8,4 +8,5 @@ Type=sddm-theme Website=https://github.com/RadRussianRus/slice-sddm Version=1.0 MainScript=Main.qml -TranslationsDirectory=translations \ No newline at end of file +TranslationsDirectory=translations +ConfigFile=theme.conf \ No newline at end of file diff --git a/slice/theme.conf b/slice/theme.conf new file mode 100644 index 0000000..88e1d2c --- /dev/null +++ b/slice/theme.conf @@ -0,0 +1,2 @@ +[General] +font=Roboto