mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
Fixed default style for Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8278 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
69c1df7e2d
commit
98c6097767
@ -100,6 +100,10 @@ RshareSettings::RshareSettings()
|
||||
|
||||
void RshareSettings::initSettings()
|
||||
{
|
||||
#ifdef UBUNTU
|
||||
// use GTK as default style on ubuntu
|
||||
setDefault(SETTING_STYLE, "GTK+");
|
||||
#else
|
||||
#if defined(Q_WS_MAC)
|
||||
setDefault(SETTING_STYLE, "macintosh (aqua)");
|
||||
#else
|
||||
@ -117,6 +121,7 @@ void RshareSettings::initSettings()
|
||||
else
|
||||
setDefault(SETTING_STYLE, "plastique");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
setDefault(SETTING_LANGUAGE, LanguageSupport::defaultLanguageCode());
|
||||
@ -157,12 +162,7 @@ void RshareSettings::setLanguageCode(QString languageCode)
|
||||
/** Gets the interface style key (e.g., "windows", "motif", etc.) */
|
||||
QString RshareSettings::getInterfaceStyle()
|
||||
{
|
||||
// use GTK as default style on ubuntu
|
||||
#ifdef UBUNTU
|
||||
return value(SETTING_STYLE,QString("GTK+")).toString();
|
||||
#else
|
||||
return value(SETTING_STYLE,QString("Cleanlooks")).toString();
|
||||
#endif
|
||||
return value(SETTING_STYLE).toString();
|
||||
}
|
||||
|
||||
/** Sets the interface style key. */
|
||||
|
Loading…
Reference in New Issue
Block a user