Skip to content

Commit

Permalink
Version 0.5.4 with new options
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianArlt committed Nov 3, 2018
1 parent fc8d3bb commit b218822
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [0.5.4] - 2018-11-03

### Changed

- Fixes a bug where "FontPointSize" would not affect the size of the power buttons labels
- Added a new variable "Font" to hard set a specific font for your greeter
- Added the option "AvatarOutline"" to make your Avatar Image appear with an outline
- Options for the appearance of the outline: "AvatarOutlineColor" and "AvatarOutlineWidth"

## [0.5.3] - 2018-10-12

### Changed
Expand Down
4 changes: 2 additions & 2 deletions Login.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SessionManagementScreen {
Layout.fillWidth: true
Layout.minimumHeight: 21
implicitHeight: root.height / 28
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: usernameFontSize
opacity: 0.5
text: lastUserName
Expand All @@ -72,7 +72,7 @@ SessionManagementScreen {
implicitHeight: usernameFontSize * 2.85
font.pointSize: usernameFontSize * 0.8
opacity: passwordFieldOutlined ? 0.75 : 0.5
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
placeholderText: config.PasswordFieldPlaceholderText == "Password" ? i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") : config.PasswordFieldPlaceholderText
focus: !showUsernamePrompt || lastUserName
echoMode: TextInput.Password
Expand Down
2 changes: 1 addition & 1 deletion SessionButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PlasmaComponents.ToolButton {
property int sessionFontSize

visible: menu.items.length > 1
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: sessionFontSize

text: instantiator.objectAt(currentIndex).text || ""
Expand Down
4 changes: 2 additions & 2 deletions components/ActionButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Item {

PlasmaComponents.Label {
id: label
font.family: "Noto Sans"
font.pointSize: mainStack.parent.height / 75
font.family: config.Font || "Noto Sans"
font.pointSize: config.FontPointSize || root.generalFontSize
renderType: Text.QtRendering
anchors {
top: icon.bottom
Expand Down
2 changes: 1 addition & 1 deletion components/Battery.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Row {
PlasmaComponents.Label {
id: batteryLabel
height: undefined
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: root.height/75
renderType: Text.QtRendering
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","%1%", battery.percent)
Expand Down
4 changes: 2 additions & 2 deletions components/Clock.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ RowLayout {
KeyboardButton {}
Battery {}
Label {
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: clockSize
text: Qt.formatDateTime(timeSource.data["Local"]["DateTime"], " ddd dd MMMM,")
renderType: Text.QtRendering
}
Label {
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: clockSize
text: Qt.formatTime(timeSource.data["Local"]["DateTime"])
renderType: Text.QtRendering
Expand Down
2 changes: 1 addition & 1 deletion components/KeyboardButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PlasmaComponents.ToolButton {

property int currentIndex: -1

font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: root.height/75
// text: instantiator.objectAt(currentIndex).shortName
visible: menu.items.length > 1
Expand Down
12 changes: 11 additions & 1 deletion components/UserDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ Item {
}
anchors.bottomMargin: usernameDelegate.height * 0.5

Rectangle {
id: outline
anchors.fill: parent
anchors.margins: -(config.AvatarOutlineWidth) || -2
color: "transparent"
border.width: config.AvatarOutlineWidth || 2
border.color: config.AvatarOutlineColor || "white"
radius: 1000
visible: config.AvatarOutline == "true" ? true : false
}
//Image takes priority, taking a full path to a file, if that doesn't exist we show an icon
Image {
id: face
Expand Down Expand Up @@ -92,7 +102,7 @@ Item {

PlasmaComponents.Label {
id: usernameDelegate
font.family: "Noto Sans"
font.family: config.Font || "Noto Sans"
font.pointSize: config.FontPointSize ? config.FontPointSize * 1.2 : root.height / 80 * 1.2
renderType: Text.QtRendering
font.capitalization: Font.Capitalize
Expand Down
4 changes: 2 additions & 2 deletions metadata.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Name=Chili for Plasma
Description=The hottest theme for KDE Plasma
Author=Marian Alexander Arlt
License=GPLv3
License=GPL-3.0-or-later
Type=sddm-theme
Version=0.5.3
Version=0.5.4
Website=https://github.com/MarianArlt/kde-plasma-chili
Screenshot=preview.png
MainScript=Main.qml
Expand Down
4 changes: 4 additions & 0 deletions theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ PasswordFieldCharacter=
PasswordFieldPlaceholderText=Password

UsePngInsteadOfMask=false
AvatarOutline=false
AvatarOutlineColor="white"
AvatarOutlineWidth=2

PowerIconSize=
Font=
FontPointSize=
AvatarPixelSize=

Expand Down

0 comments on commit b218822

Please sign in to comment.