Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: option to turn off use real name by default #26

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion where_is_my_sddm_theme/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Rectangle {
property int usernameRole: Qt.UserRole + 1
property int realNameRole: Qt.UserRole + 2
property int sessionNameRole: Qt.UserRole + 4
property string currentUsername: userModel.data(userModel.index(currentUsersIndex, 0), realNameRole) ||
property string currentUsername: (config.showUserRealNameByDefault=="true" && userModel.data(userModel.index(currentUsersIndex, 0), realNameRole)) ||
userModel.data(userModel.index(currentUsersIndex, 0), usernameRole)
property string currentSession: sessionModel.data(sessionModel.index(currentSessionsIndex, 0), sessionNameRole)
property string passwordFontSize: config.passwordFontSize || 96
Expand Down
2 changes: 2 additions & 0 deletions where_is_my_sddm_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ sessionsFontSize=24
showUsersByDefault=false
# Font size of users choose label (in points)
usersFontSize=48
# Show user real name on label by default
showUserRealNameByDefault=true

# Path to background image
background=
Expand Down
2 changes: 1 addition & 1 deletion where_is_my_sddm_theme_qt5/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Rectangle {
property int usernameRole: Qt.UserRole + 1
property int realNameRole: Qt.UserRole + 2
property int sessionNameRole: Qt.UserRole + 4
property string currentUsername: userModel.data(userModel.index(currentUsersIndex, 0), realNameRole) ||
property string currentUsername: (config.showUserRealNameByDefault=="true" && userModel.data(userModel.index(currentUsersIndex, 0), realNameRole)) ||
userModel.data(userModel.index(currentUsersIndex, 0), usernameRole)
property string currentSession: sessionModel.data(sessionModel.index(currentSessionsIndex, 0), sessionNameRole)
property string passwordFontSize: config.passwordFontSize || 96
Expand Down
2 changes: 2 additions & 0 deletions where_is_my_sddm_theme_qt5/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ sessionsFontSize=24
showUsersByDefault=false
# Font size of users choose label (in points)
usersFontSize=48
# Show user real name on label by default
showUserRealNameByDefault=true

# Path to background image
background=
Expand Down