-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.h
116 lines (115 loc) · 4.29 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#include <gtk/gtk.h>
/* Login prompt text */
static const char *user_text = "Username";
/* Password prompt text */
static const char *pass_text = "Password";
/* Session name */
static const char *session = "default";
/* GTK UI CSS */
static const gchar *style =
"window {"
"background-color: #262626;"
"}"
"window * {"
"font: 16px \"DejaVu Sans Mono\";"
"}"
"label {"
"color: white;"
"margin-right: 15px;"
"}"
"entry {"
"background-color: white;"
"border-radius: 10px;"
"box-shadow: 1px 1px white inset;"
"}"
"#message_label {"
"color: red;"
"margin-top: 25px;"
"font-size: 14px;"
"}";
/* GTK UI XML*/
static const gchar *ui =
"<?xml version='1.0' encoding='UTF-8'?>"
"<interface>"
"<requires lib='gtk+' version='3.20'/>"
"<object class='GtkWindow' id='login_window'>"
"<property name='name'>login_window</property>"
"<property name='can_focus'>False</property>"
"<property name='resizable'>False</property>"
"<property name='accept_focus'>False</property>"
"<property name='decorated'>False</property>"
"<child>"
"<placeholder/>"
"</child>"
"<child>"
"<object class='GtkBox' id='login_box'>"
"<property name='name'>login_box</property>"
"<property name='visible'>True</property>"
"<property name='can_focus'>False</property>"
"<property name='valign'>center</property>"
"<property name='vexpand'>True</property>"
"<property name='orientation'>vertical</property>"
"<child>"
"<object class='GtkBox' id='prompt_box'>"
"<property name='name'>prompt_box</property>"
"<property name='visible'>True</property>"
"<property name='can_focus'>False</property>"
"<property name='spacing'>15</property>"
"<property name='homogeneous'>True</property>"
"<child>"
"<object class='GtkLabel' id='prompt_label'>"
"<property name='name'>prompt_label</property>"
"<property name='visible'>True</property>"
"<property name='can_focus'>False</property>"
"<property name='halign'>end</property>"
"</object>"
"<packing>"
"<property name='expand'>False</property>"
"<property name='fill'>True</property>"
"<property name='position'>0</property>"
"</packing>"
"</child>"
"<child>"
"<object class='GtkEntry' id='prompt_entry'>"
"<property name='name'>prompt_entry</property>"
"<property name='visible'>True</property>"
"<property name='can_focus'>True</property>"
"<property name='halign'>start</property>"
"<property name='has_frame'>False</property>"
"<property name='max_width_chars'>15</property>"
"<property name='primary_icon_activatable'>False</property>"
"<property name='secondary_icon_activatable'>False</property>"
"<signal name='activate' handler='login_cb' swapped='no'/>"
"</object>"
"<packing>"
"<property name='expand'>False</property>"
"<property name='fill'>True</property>"
"<property name='position'>1</property>"
"</packing>"
"</child>"
"</object>"
"<packing>"
"<property name='expand'>False</property>"
"<property name='fill'>True</property>"
"<property name='position'>0</property>"
"</packing>"
"</child>"
"<child>"
"<object class='GtkLabel' id='message_label'>"
"<property name='name'>message_label</property>"
"<property name='visible'>True</property>"
"<property name='can_focus'>False</property>"
"<property name='halign'>center</property>"
"<property name='width_chars'>25</property>"
"<property name='max_width_chars'>50</property>"
"</object>"
"<packing>"
"<property name='expand'>False</property>"
"<property name='fill'>True</property>"
"<property name='position'>1</property>"
"</packing>"
"</child>"
"</object>"
"</child>"
"</object>"
"</interface>";