This is an SDDM theme consisting of a simple login dialog. It is built with Qt Quick Controls. Its appearance depends on the selected Qt Quick style (see below for configuration options).
Screenshot with Qt Quick style "Universal"
- sddm
- qt5-quickcontrols2
- qt5-graphicaleffects
-
Download the archive
master.zip
, which contains a snapshot of the Git repo:wget https://github.com/joshuakraemer/sddm-theme-dialog/archive/master.zip
-
Extract the archive to SDDM's theme directory:
$ sudo unzip master.zip -d /usr/share/sddm/themes/
-
The theme must be enabled in one of SDDM's configuration files. Either the file
/etc/sddm.conf
or a file in the directory/etc/sddm.conf.d/
can be used (refer toman sddm.conf
for details). In the section[Theme]
in one of the files, setCurrent
todialog
:[Theme] Current=dialog
The theme can be configured by editing the file theme.conf
. This file must contain a single section [General]
. The following settings are available:
key | description | default value |
---|---|---|
style |
Qt Quick style | Default |
highlightColor |
color of selected elements | depends on style |
backgroundColor |
background color | #808080 |
backgroundImage |
path to background image | none |
Refer to Qt's documentation for available styles. Colors must be specified in the format #rrggbb
. The setting highlightColor
is only effective if the styles "Default" or "Fusion" are used. To change the highlight color with the styles "Material" and "Universal", system-wide Qt Quick settings must be used (see below).
System-wide Qt Quick settings can be used to control the appearance of all Qt Quick applications, including this SDDM theme. It is possible to select a Qt Quick style and configure the widget colors in detail by using a configuration file. This works as follows:
-
Create a configuration file, for example
/etc/qtquickcontrols2.conf
. The name of the file can be chosen freely. -
Refer to Qt's documentation for possible settings. The following example enables the dark variant of the style "Material" and sets a cyan highlight color:
[Controls] Style=Material [Material] Theme=Dark Accent=#80bfbf
-
Enable the file by setting the environment variable
QT_QUICK_CONTROLS_CONF
to its path:sudo echo 'QT_QUICK_CONTROLS_CONF=/etc/qtquickcontrols2.conf' >> /etc/environment
This software is provided under the ISC license. See the file LICENSE
for details.