[gnome-color-manager] trivial: use the new 'dim-label' style for the type labels in gcm-viewer
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: use the new 'dim-label' style for the type labels in gcm-viewer
- Date: Tue, 29 Mar 2011 09:05:59 +0000 (UTC)
commit cf6a68efe30cb205052e19be0cfaff0441bf6825
Author: Richard Hughes <richard hughsie com>
Date: Tue Mar 29 09:17:54 2011 +0100
trivial: use the new 'dim-label' style for the type labels in gcm-viewer
data/gcm-viewer.ui | 50 ++++++++++----------------------------------------
src/gcm-viewer.c | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 40 deletions(-)
---
diff --git a/data/gcm-viewer.ui b/data/gcm-viewer.ui
index 984a2fb..734f7b5 100644
--- a/data/gcm-viewer.ui
+++ b/data/gcm-viewer.ui
@@ -120,10 +120,7 @@
<object class="GtkLabel" id="label_title_type">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="The type of profile, e.g. display, scanner, etc.">Profile type:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The type of profile, e.g. display, scanner, etc.">Profile type</property>
</object>
<packing>
<property name="expand">False</property>
@@ -186,10 +183,7 @@
<object class="GtkLabel" id="label_title_colorspace">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="The profile colorspace, e.g. RGB">Colorspace:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The profile colorspace, e.g. RGB">Colorspace</property>
</object>
<packing>
<property name="expand">False</property>
@@ -252,10 +246,7 @@
<object class="GtkLabel" id="label_title_datetime">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="When the profile was created">Created:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="When the profile was created">Created</property>
</object>
<packing>
<property name="expand">False</property>
@@ -319,10 +310,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
- <property name="label" translatable="yes" comments="The manufacturer of the profile">Device manufacturer:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The manufacturer of the profile">Device manufacturer</property>
</object>
<packing>
<property name="expand">False</property>
@@ -387,10 +375,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
- <property name="label" translatable="yes" comments="The manufacturer of the profile">Device model:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The manufacturer of the profile">Device model</property>
</object>
<packing>
<property name="expand">False</property>
@@ -454,10 +439,7 @@
<object class="GtkLabel" id="label_title_vcgt">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="If the profile contains a display correction table">Display correction:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="If the profile contains a display correction table">Display correction</property>
</object>
<packing>
<property name="expand">False</property>
@@ -520,10 +502,7 @@
<object class="GtkLabel" id="label_title_temp">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="The basename (the last section of the filename) of the profile">White point:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The basename (the last section of the filename) of the profile">White point</property>
</object>
<packing>
<property name="expand">False</property>
@@ -588,10 +567,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
- <property name="label" translatable="yes" comments="The licence of the profile, normally non-free">License:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The licence of the profile, normally non-free">License</property>
</object>
<packing>
<property name="expand">False</property>
@@ -655,10 +631,7 @@
<object class="GtkLabel" id="label_title_size">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="The file size in bytes of the profile">File size:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The file size in bytes of the profile">File size</property>
</object>
<packing>
<property name="expand">False</property>
@@ -722,10 +695,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
- <property name="label" translatable="yes" comments="The basename (the last section of the filename) of the profile">Filename:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes" comments="The basename (the last section of the filename) of the profile">Filename</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 4ad1c6a..ad4a2ff 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -1115,6 +1115,48 @@ gcm_viewer_startup_cb (GApplication *application, GcmViewerPrivate *viewer)
gtk_style_context_add_class (context, GTK_STYLE_CLASS_INLINE_TOOLBAR);
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+ /* make profile labels sexy */
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_type"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_colorspace"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_datetime"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_profile_manufacturer"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_profile_model"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_vcgt"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_temp"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_copyright"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_size"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+ widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder,
+ "label_title_filename"));
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_add_class (context, "dim-label");
+
/* show main UI */
gtk_widget_show (main_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]