Correction of a bug that prevented RT to use the same font everywhere
This commit is contained in:
parent
7be9746404
commit
5dc2955f18
@ -23,8 +23,6 @@
|
||||
|
||||
style "clearlooks-default" {
|
||||
|
||||
font_name = "sans, 10"
|
||||
|
||||
GtkMenuItem::selected_shadow_type = none
|
||||
GtkWidget::interior_focus = 1
|
||||
GtkButton::default_border = { 3, 3, 3, 3 }
|
||||
@ -86,7 +84,6 @@ engine "clearlooks"
|
||||
|
||||
style "clearlooks-wide" = "clearlooks-default"
|
||||
{
|
||||
font_name = "arial black, 8"
|
||||
xthickness = 2
|
||||
ythickness = 2
|
||||
bg[NORMAL] = "#313131"
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
style "clearlooks-default" {
|
||||
|
||||
font_name = "sans, 10"
|
||||
|
||||
GtkButton ::default_border = { 0, 0, 0, 0 }
|
||||
GtkComboBox ::default_border = { 0, 0, 0, 0 }
|
||||
GtkRange ::trough_border = 0
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
style "clearlooks-default" {
|
||||
|
||||
font_name = "sans, 10"
|
||||
|
||||
GtkButton ::default_border = { 0, 0, 0, 0 }
|
||||
GtkRange ::trough_border = 0
|
||||
GtkPaned ::handle_size = 6
|
||||
|
@ -19,8 +19,6 @@
|
||||
|
||||
style "clearlooks-default" {
|
||||
|
||||
font_name = "sans, 10"
|
||||
|
||||
GtkButton ::default_border = { 0, 0, 0, 0 }
|
||||
GtkRange ::trough_border = 1
|
||||
GtkPaned ::handle_size = 6
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
style "clearlooks-default" {
|
||||
|
||||
font_name = "sans, 10"
|
||||
|
||||
GtkRange::trough_border = 0
|
||||
GtkRange::slider_width = 14
|
||||
GtkRange::stepper_size = 10
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
style "clearlooks-default" {
|
||||
|
||||
font_name = "sans, 10"
|
||||
|
||||
GtkButton ::default_border = { 0, 0, 0, 0 }
|
||||
GtkRange ::trough_border = 0
|
||||
GtkPaned ::handle_size = 6
|
||||
|
@ -106,7 +106,7 @@ int main(int argc, char **argv)
|
||||
rcfiles.push_back (argv0+"/themes/"+options.theme);
|
||||
// Set the font face and size
|
||||
Gtk::RC::parse_string (Glib::ustring::compose(
|
||||
"style \"clearlooks-default\" { font_name = \"%1\" } style \"clearlooks-menu-item\" { font_name = \"%1\" }", options.font));
|
||||
"style \"clearlooks-default\" { font_name = \"%1\" }", options.font));
|
||||
Gtk::RC::set_default_files (rcfiles);
|
||||
|
||||
Gtk::Main m(&argc, &argv);
|
||||
|
@ -1031,7 +1031,7 @@ void Preferences::switchThemeTo(Glib::ustring newTheme) {
|
||||
void Preferences::switchFontTo(Glib::ustring newFont) {
|
||||
|
||||
Gtk::RC::parse_string (Glib::ustring::compose(
|
||||
"style \"clearlooks-default\" { font_name = \"%1\" } style \"clearlooks-menu-item\" { font_name = \"%1\" }", newFont));
|
||||
"style \"clearlooks-default\" { font_name = \"%1\" }", newFont));
|
||||
Gtk::RC::reparse_all (Gtk::Settings::get_default());
|
||||
GdkEventClient event = { GDK_CLIENT_EVENT, NULL, TRUE, gdk_atom_intern("_GTK_READ_RCFILES", FALSE), 8 };
|
||||
gdk_event_send_clientmessage_toall ((GdkEvent*)&event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user