Yup, thanks! :) And I desperately grep'd all of Frameworks for clues about colorScheme
Originalnachricht Von: Albert Astals Cid Gesendet: Freitag, 21. August 2015 23:05 An: [email protected] Cc: Kai Uwe Broulik Betreff: Re: Where are kdeglobals defaults? El Divendres, 21 d'agost de 2015, a les 21:13:51, Kai Uwe Broulik va escriure: > Hi all, > > I tried to find out why the default colorscheme was still Oxygen, which > unfortunately slipped into the Applications 15.08 promo screenshots, and > found that all the colors KCM does is "KConfig::sharedConfig("Kdeglobals"); > setReadDefaults(true); read(); setReadDefalts(false)" but I just cannot > figure out where the defaults for eg. colorScheme are actually stored. My 5 minutes investigation, may be wrong: * The kdeglobals are at http://lxr.kde.org/source//frameworks/kcmutils/src/kdeglobals.kcfg But you can see there that there are not many/any colors defined. So we go to the code and see m_config->setReadDefaults(true); icon = createSchemePreviewIcon(m_config); and createSchemePreviewIcon does KColorScheme windowScheme(QPalette::Active, KColorScheme::Window, config); the KColorScheme constructor does d = new KColorSchemePrivate(config, state, "Colors:Window", defaultWindowColors); and the KColorSchemePrivate one does _brushes.bg[0] = cfg.readEntry("BackgroundNormal", SET_DEFAULT(NormalBackground)); So to my understanding the default colors are at default*Colors in kcolorscheme.cpp Hope this is correct :D Cheers, Albert > > Hints welcome, > Kai Uwe > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe > >> << >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
