Changeset View
Changeset View
Standalone View
Standalone View
src/appearancegtk2.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 43 | for(auto it = foundSettings.constBegin(), itEnd = foundSettings.constEnd(); it!=itEnd; ++it) { | |||
---|---|---|---|---|---|
44 | if (it.key() == "gtk-theme-name") | 44 | if (it.key() == "gtk-theme-name") | ||
45 | m_settings["theme"] = *it; | 45 | m_settings["theme"] = *it; | ||
46 | else if (it.key() == "gtk-icon-theme-name") | 46 | else if (it.key() == "gtk-icon-theme-name") | ||
47 | m_settings["icon"] = *it; | 47 | m_settings["icon"] = *it; | ||
48 | else if (it.key() == "gtk-fallback-icon-theme") | 48 | else if (it.key() == "gtk-fallback-icon-theme") | ||
49 | m_settings["icon_fallback"] = *it; | 49 | m_settings["icon_fallback"] = *it; | ||
50 | else if (it.key() == "gtk-cursor-theme-name") | 50 | else if (it.key() == "gtk-cursor-theme-name") | ||
51 | m_settings["cursor"] = *it; | 51 | m_settings["cursor"] = *it; | ||
52 | else if (it.key() == "gtk-font-name") | | |||
53 | m_settings["font"] = *it; | | |||
54 | else if (it.key() == "gtk-toolbar-style") | 52 | else if (it.key() == "gtk-toolbar-style") | ||
55 | m_settings["toolbar_style"] = *it; | 53 | m_settings["toolbar_style"] = *it; | ||
56 | else if (it.key() == "gtk-button-images") | 54 | else if (it.key() == "gtk-button-images") | ||
57 | m_settings["show_icons_buttons"] = *it; | 55 | m_settings["show_icons_buttons"] = *it; | ||
58 | else if(it.key() == "gtk-menu-images") | 56 | else if(it.key() == "gtk-menu-images") | ||
59 | m_settings["show_icons_menus"] = *it; | 57 | m_settings["show_icons_menus"] = *it; | ||
60 | else if (it.key() == "gtk-primary-button-warps-slider") | 58 | else if (it.key() == "gtk-primary-button-warps-slider") | ||
61 | m_settings["primary_button_warps_slider"] = *it; | 59 | m_settings["primary_button_warps_slider"] = *it; | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 85 | { | |||
104 | } else { | 102 | } else { | ||
105 | qWarning() << "There was unable to write the .gtkrc-2.0 file"; | 103 | qWarning() << "There was unable to write the .gtkrc-2.0 file"; | ||
106 | return false; | 104 | return false; | ||
107 | } | 105 | } | ||
108 | } | 106 | } | ||
109 | 107 | | |||
110 | void AppearanceGTK2::modifyGtkrcContents(QString& fileContents) const | 108 | void AppearanceGTK2::modifyGtkrcContents(QString& fileContents) const | ||
111 | { | 109 | { | ||
112 | modifyGtkrcProperty("gtk-font-name", m_settings["font"], fileContents); | | |||
113 | modifyGtkrcProperty("gtk-theme-name", m_settings["theme"], fileContents); | 110 | modifyGtkrcProperty("gtk-theme-name", m_settings["theme"], fileContents); | ||
114 | modifyGtkrcProperty("gtk-icon-theme-name", m_settings["icon"], fileContents); | 111 | modifyGtkrcProperty("gtk-icon-theme-name", m_settings["icon"], fileContents); | ||
115 | modifyGtkrcProperty("gtk-fallback-icon-theme", m_settings["icon_fallback"], fileContents); | 112 | modifyGtkrcProperty("gtk-fallback-icon-theme", m_settings["icon_fallback"], fileContents); | ||
116 | modifyGtkrcProperty("gtk-cursor-theme-name", m_settings["cursor"], fileContents); | 113 | modifyGtkrcProperty("gtk-cursor-theme-name", m_settings["cursor"], fileContents); | ||
117 | modifyGtkrcProperty("gtk-toolbar-style", m_settings["toolbar_style"], fileContents); | 114 | modifyGtkrcProperty("gtk-toolbar-style", m_settings["toolbar_style"], fileContents); | ||
118 | modifyGtkrcProperty("gtk-menu-images", m_settings["show_icons_menus"], fileContents); | 115 | modifyGtkrcProperty("gtk-menu-images", m_settings["show_icons_menus"], fileContents); | ||
119 | modifyGtkrcProperty("gtk-button-images", m_settings["show_icons_buttons"], fileContents); | 116 | modifyGtkrcProperty("gtk-button-images", m_settings["show_icons_buttons"], fileContents); | ||
120 | modifyGtkrcProperty("gtk-primary-button-warps-slider", m_settings["primary_button_warps_slider"], fileContents); | 117 | modifyGtkrcProperty("gtk-primary-button-warps-slider", m_settings["primary_button_warps_slider"], fileContents); | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |