[nautilus/wip/apoos-maximus/gsoc2020: 23/27] properties-window: HIG Complaince styling
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/apoos-maximus/gsoc2020: 23/27] properties-window: HIG Complaince styling
- Date: Sun, 2 Aug 2020 17:30:00 +0000 (UTC)
commit bf365971690dc5c1e2ac452332a817f0978306f6
Author: Apoorv Sachan <apoorv 99 sachan gmail com>
Date: Tue Jul 14 01:57:02 2020 +0530
properties-window: HIG Complaince styling
* All the title labels are right Aligned
* All labels appear in a lighter shade - dim-label styling
* ':' symbol has been removed which succeeds the title labels
src/nautilus-properties-window.c | 2 +-
.../nautilus-file-properties-change-permissions.ui | 26 ++-
src/resources/ui/nautilus-properties-window.ui | 192 +++++++++++++++------
3 files changed, 161 insertions(+), 59 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 2bda6e2a2..0929a5aa2 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -663,7 +663,7 @@ update_name_field (NautilusPropertiesWindow *window)
NautilusFile *file;
gtk_label_set_text_with_mnemonic (window->name_title_label,
- ngettext ("_Name:", "_Names:",
+ ngettext ("_Name", "_Names",
get_not_gone_original_file_count (window)));
if (is_multi_file_window (window))
diff --git a/src/resources/ui/nautilus-file-properties-change-permissions.ui
b/src/resources/ui/nautilus-file-properties-change-permissions.ui
index aa77a1042..ba1935203 100644
--- a/src/resources/ui/nautilus-file-properties-change-permissions.ui
+++ b/src/resources/ui/nautilus-file-properties-change-permissions.ui
@@ -36,6 +36,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Files</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -47,6 +50,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Folders</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -57,8 +63,11 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Owner:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Owner</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -89,8 +98,11 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Group:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Group</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -141,7 +153,11 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Others:</property>
+ <property name="label" translatable="yes">Others</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
diff --git a/src/resources/ui/nautilus-properties-window.ui b/src/resources/ui/nautilus-properties-window.ui
index 67d8c4a92..2f0e1c5b3 100644
--- a/src/resources/ui/nautilus-properties-window.ui
+++ b/src/resources/ui/nautilus-properties-window.ui
@@ -78,10 +78,13 @@
<object class="GtkLabel" id="name_title_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Name:</property>
+ <property name="label" translatable="yes">_Name</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">name_field</property>
- <property name="xalign">0</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -125,8 +128,11 @@
<child>
<object class="GtkLabel" id="type_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Type:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Type</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -150,8 +156,11 @@
<child>
<object class="GtkLabel" id="link_target_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Link target:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Link target</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -176,8 +185,11 @@
<object class="GtkLabel" id="contents_title_label">
<property name="can_focus">False</property>
<property name="valign">start</property>
- <property name="label" translatable="yes">Contents:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Contents</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -209,8 +221,11 @@
<child>
<object class="GtkLabel" id="size_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Size:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Size</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -242,8 +257,11 @@
<child>
<object class="GtkLabel" id="parent_folder_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Parent folder:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Parent folder</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -267,8 +285,11 @@
<child>
<object class="GtkLabel" id="original_folder_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Original folder:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Original folder</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -292,8 +313,11 @@
<child>
<object class="GtkLabel" id="volume_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Volume:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Volume</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -317,8 +341,11 @@
<child>
<object class="GtkLabel" id="trashed_on_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Trashed on:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Trashed on</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -351,8 +378,11 @@
<child>
<object class="GtkLabel" id="accessed_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Accessed:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Accessed</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -374,8 +404,11 @@
<child>
<object class="GtkLabel" id="modified_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Modified:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Modified</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -406,8 +439,11 @@
<child>
<object class="GtkLabel" id="free_space_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Free space:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Free space</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -507,7 +543,11 @@
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="vexpand">False</property>
- <property name="label" translatable="yes">Total capacity:</property>
+ <property name="label" translatable="yes">Total capacity</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -520,7 +560,11 @@
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="vexpand">False</property>
- <property name="label" translatable="yes">Filesystem type:</property>
+ <property name="label" translatable="yes">Filesystem type</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -727,10 +771,13 @@
<object class="GtkLabel" id="owner_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Owner:</property>
+ <property name="label" translatable="yes">_Owner</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">owner_combo_box</property>
- <property name="xalign">0</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -774,8 +821,11 @@
<child>
<object class="GtkLabel" id="owner_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -785,8 +835,11 @@
<child>
<object class="GtkLabel" id="owner_folder_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Folder access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Folder access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -796,8 +849,11 @@
<child>
<object class="GtkLabel" id="owner_file_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">File access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">File access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -845,10 +901,13 @@
<object class="GtkLabel" id="group_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Group:</property>
+ <property name="label" translatable="yes">_Group</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">group_combo_box</property>
- <property name="xalign">0</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -892,8 +951,11 @@
<child>
<object class="GtkLabel" id="group_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -903,8 +965,11 @@
<child>
<object class="GtkLabel" id="group_folder_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Folder access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Folder access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -914,8 +979,11 @@
<child>
<object class="GtkLabel" id="group_file_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">File access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">File access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -964,7 +1032,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Others</property>
- <property name="xalign">0</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -974,8 +1045,11 @@
<child>
<object class="GtkLabel" id="others_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -985,8 +1059,11 @@
<child>
<object class="GtkLabel" id="others_folder_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Folder access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Folder access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -996,8 +1073,11 @@
<child>
<object class="GtkLabel" id="others_file_access_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">File access:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">File access</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1043,8 +1123,11 @@
<child>
<object class="GtkLabel" id="execute_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Execute:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Execute</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1075,8 +1158,11 @@
<child>
<object class="GtkLabel" id="security_context_title_label">
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Security context:</property>
- <property name="xalign">0</property>
+ <property name="label" translatable="yes">Security context</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]