Compare commits

...

9 commits
1.5 ... master

Author SHA1 Message Date
98996b49e0
Merge pull request #16 from KamaleiZestri/master
Qt5 -> Qt6 Compatability
2024-12-04 19:25:47 +03:00
Kamalei Zestri
9acbf5717d Qt6 compat 2024-12-03 05:06:41 -06:00
126c9da9e3 Fixed links 2024-11-28 14:00:45 +03:00
d412b338bc
Merge pull request #12 from Vistaus/master 2023-07-02 12:36:52 +03:00
Heimen Stoffels
589fef11c0
Added Dutch translation 2023-01-11 22:45:56 +01:00
763b8f4e01
Fixed incorrect repo link 2021-11-06 12:29:15 +03:00
1ddbc490a5 Version 1.5.1 2020-11-21 18:52:52 +03:00
a5dd7d2d63 Disable virtual keyboard
Closes #6.
Also some preparations for proper virtual keyboard support.
2020-11-21 18:50:41 +03:00
fb649ce9cd Slight reorganize and updated README
Should fix sddm-kcm installs.
2020-11-19 23:42:57 +03:00
15 changed files with 71 additions and 19 deletions

2
.gitignore vendored
View file

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

View file

@ -1,12 +1,15 @@
import QtQuick 2.7 import QtQuick 2.7
import QtGraphicalEffects 1.0 import Qt5Compat.GraphicalEffects
import SddmComponents 2.0 import SddmComponents 2.0
import "slice"
Rectangle Rectangle
{ {
id: root id: root
color: colors.background color: colors.background
property variant geometry: screenModel.geometry(screenModel.primary) property variant geometry: screenModel.geometry(screenModel.primary)
//property bool virtualkeyboard: bool(config.virtualkeyboard)
state: "stateUsers" state: "stateUsers"
states: states:
@ -198,12 +201,24 @@ Rectangle
id: pageUsers id: pageUsers
width: areaMain.width width: areaMain.width
height: areaMain.height height: areaMain.height
y: inputPanel.visible && inputPanel.y != areaMain.height + areaBottom.height ? -150 : 0
Behavior on x { NumberAnimation { duration: 150 } } Behavior on x { NumberAnimation { duration: 150 } }
Behavior on y { NumberAnimation { duration: 150 } }
onLockNav: areaTop.enabled = false onLockNav: areaTop.enabled = false
onUnlockNav: areaTop.enabled = true onUnlockNav: areaTop.enabled = true
} }
Loader {
id: inputPanel
source: "slice/VirtualKeyboard.qml"
width: areaMain.width
y: areaMain.height - 350 - areaBottom.height
Behavior on y { NumberAnimation { duration: 150 } }
//visible: virtualkeyboard
visible: false
}
} }
Item Item

View file

@ -4,17 +4,21 @@ Simple dark SDDM theme with many customization options.
[![Theme preview (YouTube)](https://user-images.githubusercontent.com/2903496/45325970-142dd700-b55b-11e8-8396-dc6aba6282e5.png)](https://youtu.be/X6lXkBwo--s) [![Theme preview (YouTube)](https://user-images.githubusercontent.com/2903496/45325970-142dd700-b55b-11e8-8396-dc6aba6282e5.png)](https://youtu.be/X6lXkBwo--s)
## Installing ## Install from KDE system settings
If you're using KDE, you can install theme from `System Settings > Startup and Shutdown > Login Screen (SDDM)`. You can download this repo as zip and install with `Install From File...`, or you can find it in `Get New Login Screens...` window.
## Manual install
1. Install `Qt Graphical Effects` QML module 1. Install `Qt Graphical Effects` QML module
2. Install Roboto font (optional, you can change to other font, [see below](#font-scheme)) 2. Install Roboto font (optional, you can change to other font, [see below](#font-scheme))
3. `git clone https://github.com/RadRussianRus/sddm-slice.git` 3. `git clone https://github.com/EricKotato/sddm-slice.git`
4. `cp -r sddm-slice/slice /usr/share/sddm/themes/slice` 4. `cp -r sddm-slice /usr/share/sddm/themes/sddm-slice`
5. Open `/etc/sddm.conf` and put `Current=slice` in `[Theme]` section 5. Open `/etc/sddm.conf` and put `Current=sddm-slice` in `[Theme]` section
## Configuration ## Configuration
Create file `theme.conf.user` in theme folder. See `slice/theme.conf` for reference. Also sample configs can be found [in wiki](https://github.com/RadRussianRus/sddm-slice/wiki#sample-configs). Create file `theme.conf.user` in theme folder. See `theme.conf` for reference. Also sample configs can be found [in wiki](https://github.com/EricKotato/sddm-slice/wiki#sample-configs).
### Base options ### Base options
@ -25,22 +29,22 @@ Create file `theme.conf.user` in theme folder. See `slice/theme.conf` for refere
### Color scheme ### Color scheme
There are many color options. In fact, too many. So now they are grouped by layers in [color scheme](https://github.com/RadRussianRus/sddm-slice/wiki/Color-Scheme). Most of them are optional, only mandatory options are from [layer 1](https://github.com/RadRussianRus/sddm-slice/wiki/Color-Scheme-Layer-1): There are many color options. In fact, too many. So now they are grouped by layers in [color scheme](https://github.com/EricKotato/sddm-slice/wiki/Color-Scheme). Most of them are optional, only mandatory options are from [layer 1](https://github.com/EricKotato/sddm-slice/wiki/Color-Scheme-Layer-1):
* `color_bg` - background color. Defaults to `#222222`. * `color_bg` - background color. Defaults to `#222222`.
* `color_main` - main color. Defaults to `#dddddd`. * `color_main` - main color. Defaults to `#dddddd`.
* `color_dimmed` - dimmed main color. Defaults to `#888888`. * `color_dimmed` - dimmed main color. Defaults to `#888888`.
* `color_contrast` - color that contrasting to both main and dimmed. Defaults to `#1f1f1f`. * `color_contrast` - color that contrasting to both main and dimmed. Defaults to `#1f1f1f`.
Info about other layers can be found on wiki: [layer 2](https://github.com/RadRussianRus/sddm-slice/wiki/Color-Scheme-Layer-2), [layer 3](https://github.com/RadRussianRus/sddm-slice/wiki/Color-Scheme-Layer-3). Info about other layers can be found on wiki: [layer 2](https://github.com/EricKotato/sddm-slice/wiki/Color-Scheme-Layer-2), [layer 3](https://github.com/EricKotato/sddm-slice/wiki/Color-Scheme-Layer-3).
### Font scheme ### Font scheme
There are also many font options, so there is now [font scheme](https://github.com/RadRussianRus/sddm-slice/wiki/Font-Scheme) too. Most of them are optional, only mandatory option is from [layer 1](https://github.com/RadRussianRus/sddm-slice/wiki/Font-Scheme-Layer-1): There are also many font options, so there is now [font scheme](https://github.com/EricKotato/sddm-slice/wiki/Font-Scheme) too. Most of them are optional, only mandatory option is from [layer 1](https://github.com/EricKotato/sddm-slice/wiki/Font-Scheme-Layer-1):
* `font` - overall font. Defaults to `Roboto`. * `font` - overall font. Defaults to `Roboto`.
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). Info about other layers can be found on wiki: [layer 2](https://github.com/EricKotato/sddm-slice/wiki/Font-Scheme-Layer-2), [layer 3](https://github.com/EricKotato/sddm-slice/wiki/Font-Scheme-Layer-3).
### Debug mode options ### Debug mode options

View file

@ -2,12 +2,12 @@
Name=Slice Name=Slice
Description=Simple SDDM theme. Description=Simple SDDM theme.
Author=RadRussianRus Author=RadRussianRus
Copyright=(c) 2019, RadRussianRus Copyright=(c) 2020, RadRussianRus
License=CC-BY-SA License=CC-BY-SA
Type=sddm-theme Type=sddm-theme
Screenshot=screenshot.png Screenshot=screenshot.png
Website=https://github.com/RadRussianRus/slice-sddm Website=https://github.com/RadRussianRus/sddm-slice
Version=1.5 Version=1.5.1
MainScript=Main.qml MainScript=Main.qml
TranslationsDirectory=translations TranslationsDirectory=translations
ConfigFile=theme.conf ConfigFile=theme.conf

View file

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View file

@ -1,5 +1,5 @@
import QtQuick 2.7 import QtQuick 2.7
import QtGraphicalEffects 1.0 import Qt5Compat.GraphicalEffects
Item Item
{ {

View file

@ -1,5 +1,5 @@
import QtQuick 2.7 import QtQuick 2.7
import QtGraphicalEffects 1.0 import Qt5Compat.GraphicalEffects
import SddmComponents 2.0 import SddmComponents 2.0
Item Item

View file

@ -1,5 +1,5 @@
import QtQuick 2.7 import QtQuick 2.7
import QtGraphicalEffects 1.0 import Qt5Compat.GraphicalEffects
import SddmComponents 2.0 import SddmComponents 2.0
Item Item

View file

@ -1,5 +1,5 @@
import QtQuick 2.7 import QtQuick 2.7
import QtGraphicalEffects 1.0 import Qt5Compat.GraphicalEffects
import SddmComponents 2.0 import SddmComponents 2.0
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View file

@ -0,0 +1,7 @@
import QtQuick 2.7
import QtQuick.VirtualKeyboard 2.1
InputPanel {
id: inputPanel
width: parent.width
}

BIN
translations/nl.qm Normal file

Binary file not shown.

26
translations/nl.ts Normal file
View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="nl">
<context>
<name>PagePower</name>
<message>
<source>Suspend</source>
<translation>Pauzestand</translation>
</message>
<message>
<source>Hibernate</source>
<translation>Slaapstand</translation>
</message>
<message>
<source>Hybrid Sleep</source>
<translation>Hybride slaapstand</translation>
</message>
</context>
<context>
<name>PageUsers</name>
<message>
<source>Back</source>
<translation>Terug</translation>
</message>
</context>
</TS>