Commit 53f7cfc8 authored by Jonny Lamb's avatar Jonny Lamb
Browse files

style: rename classes from wgs-* to maynard-*

parent 9ae75e8d
......@@ -30,7 +30,7 @@ maynard_app_icon_init (MaynardAppIcon *self)
{
gtk_style_context_add_class (
gtk_widget_get_style_context (GTK_WIDGET (self)),
"wgs-apps");
"maynard-apps");
gtk_style_context_remove_class (
gtk_widget_get_style_context (GTK_WIDGET (self)),
......
......@@ -78,7 +78,7 @@ maynard_clock_constructed (GObject *object)
gtk_style_context_add_class (
gtk_widget_get_style_context (GTK_WIDGET (self)),
"wgs-clock");
"maynard-clock");
self->priv->label = gtk_label_new ("");
gtk_label_set_justify (GTK_LABEL (self->priv->label), GTK_JUSTIFY_CENTER);
......
......@@ -166,7 +166,7 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self,
/* we need an ebox to catch enter and leave events */
ebox = gtk_event_box_new ();
gtk_style_context_add_class (gtk_widget_get_style_context (ebox),
"wgs-grid-item");
"maynard-grid-item");
/* we use an overlay so we can have the app icon showing but use a
* GtkRevealer to show a label of the app's name. */
......@@ -192,7 +192,7 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self,
/* app name */
label = gtk_label_new (g_app_info_get_display_name (G_APP_INFO (info)));
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_style_context_add_class (gtk_widget_get_style_context (label), "wgs-grid-label");
gtk_style_context_add_class (gtk_widget_get_style_context (label), "maynard-grid-label");
gtk_container_add (GTK_CONTAINER (revealer), label);
/* icon button to load the app */
......@@ -290,7 +290,7 @@ maynard_launcher_constructed (GObject *object)
/* make it black and slightly alpha */
gtk_style_context_add_class (
gtk_widget_get_style_context (GTK_WIDGET (self)),
"wgs-grid");
"maynard-grid");
/* scroll it */
self->priv->scrolled_window = gtk_scrolled_window_new (NULL, NULL);
......
......@@ -92,7 +92,7 @@ maynard_panel_constructed (GObject *object)
/* make it black and slightly alpha */
gtk_style_context_add_class (
gtk_widget_get_style_context (GTK_WIDGET (self)),
"wgs-panel");
"maynard-panel");
/* main vbox */
main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
......@@ -134,14 +134,14 @@ maynard_panel_constructed (GObject *object)
image = gtk_image_new_from_icon_name ("network-wireless-signal-excellent-symbolic",
GTK_ICON_SIZE_LARGE_TOOLBAR);
gtk_style_context_add_class (gtk_widget_get_style_context (image),
"wgs-wifi");
"maynard-wifi");
gtk_box_pack_start (GTK_BOX (buttons_box), image, FALSE, FALSE, 0);
/* sound button */
image = gtk_image_new_from_icon_name ("audio-volume-high-symbolic",
GTK_ICON_SIZE_LARGE_TOOLBAR);
gtk_style_context_add_class (gtk_widget_get_style_context (image),
"wgs-audio");
"maynard-audio");
gtk_box_pack_start (GTK_BOX (buttons_box), image, FALSE, FALSE, 0);
/* revealer for the vertical clock */
......
.wgs-panel {
.maynard-panel {
background-color: alpha(black, 0.7);
}
.wgs-wifi {
.maynard-wifi {
background-color: #6d6d6d;
color: white;
padding: 16px;
}
.wgs-audio {
.maynard-audio {
background-color: #b4b4b4;
color: white;
padding: 16px;
}
.wgs-apps {
.maynard-apps {
color: #bebebe;
}
.wgs-apps:hover {
.maynard-apps:hover {
-GtkWidget-focus-line-width: 0px;
background-color: #1c1c1c;
background-image: none;
color: white;
}
.wgs-clock {
.maynard-clock {
background-color: #929292;
color: white;
}
.wgs-grid {
.maynard-grid {
background-color: alpha(white, 0.5);
}
.wgs-grid-item {
.maynard-grid-item {
background-color: alpha(black, 0.7);
color: white;
font: Droid Sans 12;
......@@ -44,6 +44,6 @@
border-radius: 1px;
}
.wgs-grid-label {
.maynard-grid-label {
background-color: #929292;
}
\ No newline at end of file
......@@ -89,14 +89,14 @@ maynard_vertical_clock_constructed (GObject *object)
padding = gtk_label_new ("");
gtk_style_context_add_class (gtk_widget_get_style_context (padding),
"wgs-clock");
"maynard-clock");
gtk_widget_set_size_request (padding, width, -1);
gtk_box_pack_start (GTK_BOX (self), padding, FALSE, FALSE, 0);
/* the actual clock label */
self->priv->label = gtk_label_new ("");
gtk_style_context_add_class (gtk_widget_get_style_context (self->priv->label),
"wgs-clock");
"maynard-clock");
gtk_label_set_justify (GTK_LABEL (self->priv->label), GTK_JUSTIFY_CENTER);
gtk_widget_set_size_request (self->priv->label,
MAYNARD_VERTICAL_CLOCK_WIDTH, -1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment