mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-21 13:10:19 +00:00
Added theming to menu_about() immediately after gtk_about_dialog_new() by calling fe_apply_theme_to_toplevel (GTK_WIDGET (dialog));, with the requested short CSS-selector comment style.
Added theming to setup_browsefont_cb() immediately after gtk_font_chooser_dialog_new(...) by calling fe_apply_theme_to_toplevel (dialog);, plus the same short comment for consistency/discoverability. Added theming to setup_color_cb() immediately after gtk_color_chooser_dialog_new(...) by calling fe_apply_theme_to_toplevel (dialog);, again with the matching comment.
This commit is contained in:
@@ -1859,6 +1859,9 @@ static void
|
|||||||
menu_about (GtkWidget *wid, gpointer sess)
|
menu_about (GtkWidget *wid, gpointer sess)
|
||||||
{
|
{
|
||||||
GtkAboutDialog *dialog = GTK_ABOUT_DIALOG(gtk_about_dialog_new());
|
GtkAboutDialog *dialog = GTK_ABOUT_DIALOG(gtk_about_dialog_new());
|
||||||
|
/* Window classes are required for GTK CSS selectors like
|
||||||
|
* .zoitechat-dark/.zoitechat-light. */
|
||||||
|
fe_apply_theme_to_toplevel (GTK_WIDGET (dialog));
|
||||||
char comment[512];
|
char comment[512];
|
||||||
char *license = "This program is free software; you can redistribute it and/or modify\n" \
|
char *license = "This program is free software; you can redistribute it and/or modify\n" \
|
||||||
"it under the terms of the GNU General Public License as published by\n" \
|
"it under the terms of the GNU General Public License as published by\n" \
|
||||||
|
|||||||
@@ -1242,6 +1242,9 @@ setup_browsefont_cb (GtkWidget *button, GtkWidget *entry)
|
|||||||
const char *font_name;
|
const char *font_name;
|
||||||
|
|
||||||
dialog = gtk_font_chooser_dialog_new (_("Select font"), GTK_WINDOW (setup_window));
|
dialog = gtk_font_chooser_dialog_new (_("Select font"), GTK_WINDOW (setup_window));
|
||||||
|
/* Window classes are required for GTK CSS selectors like
|
||||||
|
* .zoitechat-dark/.zoitechat-light. */
|
||||||
|
fe_apply_theme_to_toplevel (dialog);
|
||||||
font_dialog = dialog; /* global var */
|
font_dialog = dialog; /* global var */
|
||||||
|
|
||||||
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
|
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
|
||||||
@@ -1697,6 +1700,9 @@ setup_color_cb (GtkWidget *button, gpointer userdata)
|
|||||||
color_index = GPOINTER_TO_INT (userdata);
|
color_index = GPOINTER_TO_INT (userdata);
|
||||||
|
|
||||||
dialog = gtk_color_chooser_dialog_new (_("Select color"), GTK_WINDOW (setup_window));
|
dialog = gtk_color_chooser_dialog_new (_("Select color"), GTK_WINDOW (setup_window));
|
||||||
|
/* Window classes are required for GTK CSS selectors like
|
||||||
|
* .zoitechat-dark/.zoitechat-light. */
|
||||||
|
fe_apply_theme_to_toplevel (dialog);
|
||||||
if (setup_color_edit_source_colors && color_index >= 0 && color_index <= MAX_COL)
|
if (setup_color_edit_source_colors && color_index >= 0 && color_index <= MAX_COL)
|
||||||
setup_rgba_from_palette (&setup_color_edit_source_colors[color_index], &rgba);
|
setup_rgba_from_palette (&setup_color_edit_source_colors[color_index], &rgba);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user