Skip to content

Commit 8a3805e

Browse files
authored
Update UI text and add CSS override section
1 parent 1ddc7bb commit 8a3805e

File tree

1 file changed

+41
-4
lines changed

1 file changed

+41
-4
lines changed

src/widgets/guide_dialog.ui

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343

4444
<child>
4545
<object class="AdwPreferencesGroup">
46+
<style>
47+
<class name="warning"/>
48+
</style>
4649
<child>
4750
<object class="AdwBanner">
4851
<property name="title" translatable="yes">Rewaita only styles GTK-3/4 applications; other UI toolkits will not be affected</property>
@@ -120,14 +123,14 @@
120123

121124
<child>
122125
<object class="AdwPreferencesGroup">
123-
<property name="title" translatable="yes">Theme Firefox with Rewaita</property>
124-
<property name="description" translatable="yes">Firefox requires a userChrome.css file to follow your GTK color scheme. Follow the steps below to set it up.</property>
126+
<property name="title" translatable="yes">Apply Theme to Firefox</property>
127+
<property name="description" translatable="yes">Firefox requires a userChrome.css file to follow your color scheme. Follow the steps below to set it up.</property>
125128

126129
<child>
127130
<object class="AdwActionRow">
128131
<property name="icon-name">system-run-symbolic</property>
129132
<property name="title" translatable="yes">Step 1 — Enable userChrome.css</property>
130-
<property name="subtitle" translatable="yes">Navigate to about:config, search for toolkit.legacyUserProfileCustomizations.stylesheets, and set it to true.</property>
133+
<property name="subtitle" translatable="yes">Navigate to about:config, search for toolkit.legacyUserProfileCustomizations.stylesheets, and set it to true. See 'CSS Override' for details.</property>
131134
</object>
132135
</child>
133136

@@ -167,6 +170,40 @@
167170
</object>
168171
</child>
169172

173+
<child>
174+
<object class="AdwPreferencesGroup">
175+
<property name="title" translatable="yes">CSS Override</property>
176+
<property name="description" translatable="yes">Search 'about:config', then copy-paste in this property and set it to true.</property>
177+
178+
<child>
179+
<object class="GtkBox">
180+
<property name="spacing">12</property>
181+
<child>
182+
<object class="GtkEntry" id="firefox_entry">
183+
<property name="editable">false</property>
184+
<property name="hexpand">true</property>
185+
<property name="xalign">0.5</property>
186+
<property name="text">toolkit.legacyUserProfileCustomizations.stylesheets</property>
187+
<style>
188+
<class name="monospace"/>
189+
</style>
190+
</object>
191+
</child>
192+
<child>
193+
<object class="GtkButton" id="copy_button_firefox">
194+
<property name="icon-name">edit-copy-symbolic</property>
195+
<property name="tooltip-text" translatable="yes">Copy to clipboard</property>
196+
<property name="valign">center</property>
197+
<style>
198+
<class name="circular"/>
199+
</style>
200+
</object>
201+
</child>
202+
</object>
203+
</child>
204+
</object>
205+
</child>
206+
170207
</object>
171208
</child>
172209

@@ -312,7 +349,7 @@
312349
<property name="child">
313350
<object class="AdwButtonContent">
314351
<property name="icon-name">adw-external-link-symbolic</property>
315-
<property name="label" translatable="yes">Open Repository</property>
352+
<property name="label" translatable="yes">Open in Browser</property>
316353
</object>
317354
</property>
318355
<style>

0 commit comments

Comments
 (0)