forked from openkylin/qt5-ukui-platformtheme
BUGI96VDL, Remove ApplicationStyleSettings
This commit is contained in:
parent
87edd2b26e
commit
68f5b8a276
|
@ -56,9 +56,9 @@ ProxyStylePlugin::ProxyStylePlugin()
|
||||||
if (QApplication::style()->inherits("InternalStyle"))
|
if (QApplication::style()->inherits("InternalStyle"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
// auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
||||||
if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
// if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
auto styleName = settings->get("styleName").toString();
|
auto styleName = settings->get("styleName").toString();
|
||||||
|
|
||||||
|
@ -213,9 +213,9 @@ void ProxyStylePlugin::tableModeChanged(bool isTableMode)
|
||||||
if (QApplication::style()->inherits("InternalStyle"))
|
if (QApplication::style()->inherits("InternalStyle"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
// auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
||||||
if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
// if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
auto settings = UKUIStyleSettings::globalInstance();
|
auto settings = UKUIStyleSettings::globalInstance();
|
||||||
auto styleName = settings->get("styleName").toString();
|
auto styleName = settings->get("styleName").toString();
|
||||||
|
|
|
@ -109,29 +109,29 @@ ProxyStyle::ProxyStyle(const QString &key) : QProxyStyle(key == nullptr? "fusion
|
||||||
m_blur_helper->onBlurEnableChanged(false);
|
m_blur_helper->onBlurEnableChanged(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_app_style_settings = ApplicationStyleSettings::getInstance();
|
// m_app_style_settings = ApplicationStyleSettings::getInstance();
|
||||||
if (m_app_style_settings) {
|
// if (m_app_style_settings) {
|
||||||
connect(m_app_style_settings, &ApplicationStyleSettings::colorStretageChanged, [=](const ApplicationStyleSettings::ColorStretagy &stretagy) {
|
// connect(m_app_style_settings, &ApplicationStyleSettings::colorStretageChanged, [=](const ApplicationStyleSettings::ColorStretagy &stretagy) {
|
||||||
/*!
|
// /*!
|
||||||
\todo implemet palette switch.
|
// \todo implemet palette switch.
|
||||||
*/
|
// */
|
||||||
switch (stretagy) {
|
// switch (stretagy) {
|
||||||
case ApplicationStyleSettings::System: {
|
// case ApplicationStyleSettings::System: {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
case ApplicationStyleSettings::Bright: {
|
// case ApplicationStyleSettings::Bright: {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
case ApplicationStyleSettings::Dark: {
|
// case ApplicationStyleSettings::Dark: {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
default:
|
// default:
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
} else {
|
// } else {
|
||||||
qWarning("org.ukui.style is null!");
|
// qWarning("org.ukui.style is null!");
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (QGSettings::isSchemaInstalled("org.ukui.peripherals-mouse")) {
|
if (QGSettings::isSchemaInstalled("org.ukui.peripherals-mouse")) {
|
||||||
QGSettings *settings = new QGSettings("org.ukui.peripherals-mouse");
|
QGSettings *settings = new QGSettings("org.ukui.peripherals-mouse");
|
||||||
|
|
|
@ -30,7 +30,7 @@ class BlurHelper;
|
||||||
class GestureHelper;
|
class GestureHelper;
|
||||||
class WindowManager;
|
class WindowManager;
|
||||||
|
|
||||||
class ApplicationStyleSettings;
|
//class ApplicationStyleSettings;
|
||||||
|
|
||||||
namespace UKUI {
|
namespace UKUI {
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ private:
|
||||||
GestureHelper *m_gesture_helper = nullptr;
|
GestureHelper *m_gesture_helper = nullptr;
|
||||||
WindowManager *m_window_manager = nullptr;
|
WindowManager *m_window_manager = nullptr;
|
||||||
|
|
||||||
ApplicationStyleSettings *m_app_style_settings = nullptr;
|
// ApplicationStyleSettings *m_app_style_settings = nullptr;
|
||||||
|
|
||||||
bool m_blink_cursor = true;
|
bool m_blink_cursor = true;
|
||||||
int m_blink_cursor_time = 1200;
|
int m_blink_cursor_time = 1200;
|
||||||
|
|
Loading…
Reference in New Issue