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"))
|
||||
return;
|
||||
|
||||
auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
||||
if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
||||
return;
|
||||
// auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
||||
// if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
||||
// return;
|
||||
|
||||
auto styleName = settings->get("styleName").toString();
|
||||
|
||||
|
@ -213,9 +213,9 @@ void ProxyStylePlugin::tableModeChanged(bool isTableMode)
|
|||
if (QApplication::style()->inherits("InternalStyle"))
|
||||
return;
|
||||
|
||||
auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
||||
if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
||||
return;
|
||||
// auto appStyleSettings = ApplicationStyleSettings::getInstance();
|
||||
// if (appStyleSettings->currentStyleStretagy() != ApplicationStyleSettings::Default)
|
||||
// return;
|
||||
|
||||
auto settings = UKUIStyleSettings::globalInstance();
|
||||
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_app_style_settings = ApplicationStyleSettings::getInstance();
|
||||
if (m_app_style_settings) {
|
||||
connect(m_app_style_settings, &ApplicationStyleSettings::colorStretageChanged, [=](const ApplicationStyleSettings::ColorStretagy &stretagy) {
|
||||
/*!
|
||||
\todo implemet palette switch.
|
||||
*/
|
||||
switch (stretagy) {
|
||||
case ApplicationStyleSettings::System: {
|
||||
break;
|
||||
}
|
||||
case ApplicationStyleSettings::Bright: {
|
||||
break;
|
||||
}
|
||||
case ApplicationStyleSettings::Dark: {
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
qWarning("org.ukui.style is null!");
|
||||
}
|
||||
// m_app_style_settings = ApplicationStyleSettings::getInstance();
|
||||
// if (m_app_style_settings) {
|
||||
// connect(m_app_style_settings, &ApplicationStyleSettings::colorStretageChanged, [=](const ApplicationStyleSettings::ColorStretagy &stretagy) {
|
||||
// /*!
|
||||
// \todo implemet palette switch.
|
||||
// */
|
||||
// switch (stretagy) {
|
||||
// case ApplicationStyleSettings::System: {
|
||||
// break;
|
||||
// }
|
||||
// case ApplicationStyleSettings::Bright: {
|
||||
// break;
|
||||
// }
|
||||
// case ApplicationStyleSettings::Dark: {
|
||||
// break;
|
||||
// }
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// });
|
||||
// } else {
|
||||
// qWarning("org.ukui.style is null!");
|
||||
// }
|
||||
|
||||
if (QGSettings::isSchemaInstalled("org.ukui.peripherals-mouse")) {
|
||||
QGSettings *settings = new QGSettings("org.ukui.peripherals-mouse");
|
||||
|
|
|
@ -30,7 +30,7 @@ class BlurHelper;
|
|||
class GestureHelper;
|
||||
class WindowManager;
|
||||
|
||||
class ApplicationStyleSettings;
|
||||
//class ApplicationStyleSettings;
|
||||
|
||||
namespace UKUI {
|
||||
|
||||
|
@ -73,7 +73,7 @@ private:
|
|||
GestureHelper *m_gesture_helper = nullptr;
|
||||
WindowManager *m_window_manager = nullptr;
|
||||
|
||||
ApplicationStyleSettings *m_app_style_settings = nullptr;
|
||||
// ApplicationStyleSettings *m_app_style_settings = nullptr;
|
||||
|
||||
bool m_blink_cursor = true;
|
||||
int m_blink_cursor_time = 1200;
|
||||
|
|
Loading…
Reference in New Issue