plasma theme colors for !accelerated graphics

--fix also how accelerated graphics are identified
by using GraphicsInfo api
pull/8/head
Michail Vourlakos 6 years ago
parent 724a59eb23
commit 2866b6a3aa

@ -71,6 +71,10 @@ Loader{
&& latteView.windowsTracker.currentScreen.touchingWindowScheme)
property QtObject applyTheme: {
if (!graphicsSystem.isAccelerated) {
return theme;
}
if (latteView && latteView.windowsTracker && !root.hasExpandedApplet) {
if (root.windowColors === Latte.Types.ActiveWindowColors && selectedWindowsTracker.activeWindowScheme) {
return selectedWindowsTracker.activeWindowScheme;

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.1
import QtQuick 2.8
import QtQuick.Layouts 1.1
import QtQuick.Window 2.2
import QtGraphicalEffects 1.0
@ -1711,10 +1711,10 @@ Item {
id: indicators
}
ShaderEffect {
Item {
id: graphicsSystem
//! check if Software qml rendering is applied
readonly property bool isAccelerated: status === ShaderEffect.Compiled
readonly property bool isAccelerated: (GraphicsInfo.api !== GraphicsInfo.Software)
&& (GraphicsInfo.api !== GraphicsInfo.Unknown)
}
///////////////END components

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.0
import QtQuick 2.8
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0
@ -377,10 +377,10 @@ Item {
}
//!
ShaderEffect {
Item {
id: graphicsSystem
//! check if Software qml rendering is applied
readonly property bool isAccelerated: status === ShaderEffect.Compiled
readonly property bool isAccelerated: (GraphicsInfo.api !== GraphicsInfo.Software)
&& (GraphicsInfo.api !== GraphicsInfo.Unknown)
}
Loader {

Loading…
Cancel
Save