Skip to content

Commit 2e0ae56

Browse files
JosephMccclefebvre
authored andcommitted
Add a new StPasswordEntry widget
We are moving to new dialogs in Cinnamon and several contain password entries. This gives a new entry to use for those dialogs that features a a show/hide password feature
1 parent 5b05d68 commit 2e0ae56

File tree

6 files changed

+452
-0
lines changed

6 files changed

+452
-0
lines changed
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 88 additions & 0 deletions
Loading

data/theme/cinnamon-sass/_common.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ stage {
5656
StLabel.hint-text { color: transparentize($fg_color, 0.7); }
5757

5858
.capslock-warning { icon-size: $scalable_icon_size; }
59+
60+
StIcon.peek-password {
61+
icon-size: 16px;
62+
color: $fg_color;
63+
}
5964
}
6065

6166
// buttons in dialogs

src/st/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ st_headers = [
1515
'st-icon-colors.h',
1616
'st-label.h',
1717
'st-image-content.h',
18+
'st-password-entry.h',
1819
'st-polygon.h',
1920
'st-private.h',
2021
'st-scrollable.h',
@@ -114,6 +115,7 @@ st_gir_sources = [
114115
'st-icon-colors.c',
115116
'st-image-content.c',
116117
'st-label.c',
118+
'st-password-entry.c',
117119
'st-polygon.c',
118120
'st-private.c',
119121
'st-scrollable.c',

0 commit comments

Comments
 (0)