Skip to content

Commit

Permalink
[Complains] Set the fucking background color of Unlock Button
Browse files Browse the repository at this point in the history
This modification doesn't have any effects on GtkButton for some unknown
reasons. I don't know what happened because it's really weird. This fucking
commit is just a fucking note.

GTK3 is a bunch of shit and so is GNOME Environment.

Life is short; Stay away from GTK -- a fucking GUI programming toolkit.

Qt is the future, so, GTK3, fuck you! I don't ever want to see that shit again.
  • Loading branch information
hao-lee committed Sep 13, 2017
1 parent 39e2553 commit 8b77eba
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/gs-lock-plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -2200,6 +2200,29 @@ load_theme (GSLockPlug *plug)
"font_desc=\"Ubuntu 11\">%s</span>", _("Has Logged In"));
gtk_label_set_markup(plug->priv->auth_username_label, str);
g_free(str);
/*
GdkRGBA color;
gdk_rgba_parse(&color, "#024387");
gtk_widget_override_background_color(plug->priv->auth_unlock_button, GTK_STATE_FLAG_NORMAL, &color);
gdk_rgba_parse(&color, "#0258AD");
gtk_widget_override_background_color(plug->priv->auth_unlock_button, GTK_STATE_FLAG_PRELIGHT, &color);
gdk_rgba_parse(&color, "#013C76");
gtk_widget_override_background_color(plug->priv->auth_unlock_button, GTK_STATE_FLAG_ACTIVE, &color);
gdk_rgba_parse(&color, "#013C76");
gtk_widget_override_background_color(plug->priv->auth_unlock_button, GTK_STATE_FLAG_INSENSITIVE, &color);
*/
/* 按钮字体颜色 */
/*
GtkWidget *inner_label = gtk_bin_get_child(plug->priv->auth_unlock_button);
gdk_rgba_parse(&color, "#ffffff");
gtk_widget_override_color(inner_label, GTK_STATE_FLAG_NORMAL, &color);
gdk_rgba_parse(&color, "#ffffff");
gtk_widget_override_color(inner_label, GTK_STATE_FLAG_PRELIGHT, &color);
gdk_rgba_parse(&color, "#ffffff");
gtk_widget_override_color(inner_label, GTK_STATE_FLAG_ACTIVE, &color);
gdk_rgba_parse(&color, "#ffffff");
gtk_widget_override_color(inner_label, GTK_STATE_FLAG_INSENSITIVE, &color);
*/

date_time_update (plug);
gtk_widget_show_all (lock_dialog);
Expand Down

0 comments on commit 8b77eba

Please sign in to comment.