Skip to content

Commit bb62ba9

Browse files
committed
Icons: update password entry icons
1 parent ae94e91 commit bb62ba9

File tree

6 files changed

+69
-45
lines changed

6 files changed

+69
-45
lines changed

demo/Views/FormView.vala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,27 @@ public class FormView : DemoPage {
2222
secondary_text = "Must be at least 8 characters long"
2323
};
2424

25-
var button = new Gtk.Button.with_label ("Submit");
25+
var password_entry = new Gtk.PasswordEntry () {
26+
show_peek_icon = true
27+
};
28+
29+
var password_label = new Granite.HeaderLabel ("Password") {
30+
mnemonic_widget = password_entry
31+
};
32+
33+
var button = new Gtk.Button.with_label ("Submit") {
34+
margin_top = 24
35+
};
2636

27-
var box = new Granite.Box (VERTICAL) {
37+
var box = new Granite.Box (VERTICAL, NONE) {
2838
halign = CENTER,
2939
valign = CENTER,
3040
margin_start = margin_end = margin_top = margin_bottom = 12
3141
};
3242
box.append (username_label);
3343
box.append (username_entry);
44+
box.append (password_label);
45+
box.append (password_entry);
3446
box.append (button);
3547

3648
child = box;

lib/Icons/icons.gresource.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
<file alias="scalable/actions/selection-mode-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/selection-mode-symbolic.svg</file>
2121

22+
<file alias="scalable/actions/view-conceal-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-conceal-symbolic.svg</file>
23+
<file alias="scalable/actions/view-reveal-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-reveal-symbolic.svg</file>
24+
<file alias="scalable/status/eye-not-looking-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-conceal-symbolic.svg</file>
25+
<file alias="scalable/status/eye-open-negative-filled-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-reveal-symbolic.svg</file>
26+
2227
<file alias="scalable/actions/view-column-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-column-symbolic.svg</file>
2328
<file alias="scalable/actions/view-grid-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-grid-symbolic.svg</file>
2429
<file alias="scalable/actions/view-list-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/view-list-symbolic.svg</file>
@@ -54,9 +59,6 @@
5459
<file alias="scalable/status/check-indeterminate-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/check-indeterminate.svg</file>
5560
<file alias="scalable/status/check-mixed-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/check-indeterminate.svg</file>
5661

57-
<file alias="scalable/status/eye-not-looking-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/eye-not-looking-symbolic.svg</file>
58-
<file alias="scalable/status/eye-open-negative-filled-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/eye-open-negative-filled-symbolic.svg</file>
59-
6062
<file alias="scalable/status/pager-checked-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/pager-checked-symbolic.svg</file>
6163

6264
<file alias="scalable/status/process-completed-symbolic.svg" compressed="true" preprocess="xml-stripblanks">scalable/process-completed-symbolic.svg</file>

lib/Icons/scalable/eye-not-looking-symbolic.svg

Lines changed: 0 additions & 25 deletions
This file was deleted.

lib/Icons/scalable/eye-open-negative-filled-symbolic.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)