diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml --- a/sddm-theme/Main.qml +++ b/sddm-theme/Main.qml @@ -409,6 +409,44 @@ } } + Image { + id: logo + visible: config.showdistrologo == "shown" + source: config.distrologo + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: footer.top + anchors.bottomMargin: units.largeSpacing + opacity: loginScreenRoot.uiVisible ? 0 : 1 + fillMode: Image.PreserveAspectFit + height: units.largeSpacing * 8 + Behavior on opacity { + NumberAnimation { + duration: 500 + easing.type: Easing.InOutQuad + } + } + } + + DropShadow { + id: logoShadow + anchors.fill: logo + source: logo + visible: !softwareRendering && config.showdistrologo == "shown" + horizontalOffset: 1 + verticalOffset: 1 + radius: 6 + samples: 14 + spread: 0.3 + color: "black" // matches Breeze window decoration and desktopcontainment + opacity: loginScreenRoot.uiVisible ? 0 : 1 + Behavior on opacity { + NumberAnimation { + duration: 500 + easing.type: Easing.InOutQuad + } + } + } + //Footer RowLayout { id: footer diff --git a/sddm-theme/default-logo.svg b/sddm-theme/default-logo.svg new file mode 100644 --- /dev/null +++ b/sddm-theme/default-logo.svg @@ -0,0 +1,61 @@ + + + + + + image/svg+xml + + + + + + + + + + diff --git a/sddm-theme/theme.conf.cmake b/sddm-theme/theme.conf.cmake --- a/sddm-theme/theme.conf.cmake +++ b/sddm-theme/theme.conf.cmake @@ -1,4 +1,6 @@ [General] +showdistrologo=hidden +distrologo=${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze/default-logo.svg type=image color=#1d99f3 fontSize=10