Skip to content
15 changes: 10 additions & 5 deletions demo/Views/FormView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ public class FormView : DemoPage {
critical (e.message);
}

var validated_header = new Granite.HeaderLabel ("Granite.ValidatedEntry") {
secondary_text = "Must be at least 8 characters long"
};

var validated_entry = new Granite.ValidatedEntry () {
min_length = 8,
regex = username_regex
};

var validated_header = new Granite.HeaderLabel ("Granite.ValidatedEntry") {
mnemonic_widget = validated_entry,
secondary_text = "Must be at least 8 characters long"
};
var button = new Gtk.Button.with_label ("Submit");

var success_entry = new Gtk.Entry () {
placeholder_text = "Granite.CssClass.SUCCESS",
Expand All @@ -43,7 +44,9 @@ public class FormView : DemoPage {
};
error_entry.add_css_class (Granite.CssClass.ERROR);

var button = new Gtk.Button.with_label ("Submit");
var password_entry = new Gtk.PasswordEntry () {
show_peek_icon = true
};

var datepicker = new Granite.DatePicker ();
var timepicker = new Granite.TimePicker ();
Expand Down Expand Up @@ -79,6 +82,8 @@ public class FormView : DemoPage {
box.append (success_entry);
box.append (warning_entry);
box.append (error_entry);
box.append (new Granite.HeaderLabel ("Gtk.PasswordEntry"));
box.append (password_entry);
box.append (new Granite.HeaderLabel ("Date & Time"));
box.append (datetime_grid);
box.append (new Granite.HeaderLabel ("Gtk.SpinButton"));
Expand Down
6 changes: 4 additions & 2 deletions lib/Icons/icons.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@
<!--Gtk.DropDown-->
<file compressed="true" preprocess="xml-stripblanks">object-select-symbolic.svg</file>

<file compressed="true" preprocess="xml-stripblanks">eye-not-looking-symbolic.svg</file>
<file compressed="true" preprocess="xml-stripblanks">eye-open-negative-filled-symbolic.svg</file>
<file compressed="true" preprocess="xml-stripblanks">view-conceal-symbolic.svg</file>
<file compressed="true" preprocess="xml-stripblanks">view-reveal-symbolic.svg</file>
<file alias="eye-not-looking-symbolic.svg" compressed="true" preprocess="xml-stripblanks">view-conceal-symbolic.svg</file>
<file alias="eye-open-negative-filled-symbolic.svg" compressed="true" preprocess="xml-stripblanks">view-reveal-symbolic.svg</file>

<file compressed="true" preprocess="xml-stripblanks">list-drag-handle-symbolic.svg</file>

Expand Down
25 changes: 0 additions & 25 deletions lib/Icons/scalable/ui/eye-not-looking-symbolic.svg

This file was deleted.

15 changes: 0 additions & 15 deletions lib/Icons/scalable/ui/eye-open-negative-filled-symbolic.svg

This file was deleted.

35 changes: 35 additions & 0 deletions lib/Icons/scalable/ui/view-conceal-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions lib/Icons/scalable/ui/view-reveal-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading