You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MainWindow.vala
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ public class MainWindow : Gtk.Window {
32
32
privateGtk.Entry bg_entry;
33
33
privateGtk.Entry fg_entry;
34
34
privateGtk.Label results_label;
35
+
privateGradeLabel a_level;
35
36
privateGradeLabel aa_level;
36
37
privateGradeLabel aaa_level;
37
38
@@ -84,18 +85,25 @@ public class MainWindow : Gtk.Window {
84
85
results_label.valign =Gtk.Align.CENTER;
85
86
results_label.halign =Gtk.Align.CENTER;
86
87
88
+
a_level =newGradeLabel ("WCAG A");
89
+
a_level.halign =Gtk.Align.CENTER;
90
+
a_level.tooltip_markup ="<big><b>%s</b></big>\n%s".printf (_("3:1"), _("The minimum level recommended by ISO-9241-3 and ANSI-HFES-100-1988 for standard text and vision"));
91
+
87
92
aa_level =newGradeLabel ("WCAG AA");
88
93
aa_level.halign =Gtk.Align.CENTER;
94
+
aa_level.tooltip_markup ="<big><b>%s</b></big>\n%s".printf (_("4.5:1"), _("Compensates for the loss in contrast that results from moderately low visual acuity, color deficiencies, or aging."));
89
95
90
96
aaa_level =newGradeLabel ("WCAG AAA");
91
97
aaa_level.halign =Gtk.Align.CENTER;
98
+
aaa_level.tooltip_markup ="<big><b>%s</b></big>\n%s".printf (_("7:1"), _("Compensates for the loss in contrast sensitivity usually experienced by users with about 20/80 vision. People with more than this degree of vision loss usually use assistive technologies."));
0 commit comments