Skip to content
Snippets Groups Projects
Commit f7c03b9e authored by SeeLook's avatar SeeLook :musical_note:
Browse files

[Android] Darker shadow, fixed tips blur - better visibility

parent 840bf5cc
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ int main(int argc, char *argv[])
f.setPixelSize(qRound(static_cast<qreal>(f.pixelSize()) * gl->guiScale()));
auto pal = qApp->palette();
pal.setColor(QPalette::Active, QPalette::Highlight, QColor(0, 160, 160)); // Teal color of highlight for Android
pal.setColor(QPalette::Active, QPalette::Shadow, QColor(144, 144, 144)); // Dark gray for shadow
pal.setColor(QPalette::Active, QPalette::Shadow, QColor(120, 120, 120)); // Dark gray for shadow
qApp->setPalette(pal);
#elif defined (Q_OS_WIN)
QSettings accent(QStringLiteral("HKEY_USERS\\.DEFAULT\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Accent"),
......
......@@ -25,7 +25,8 @@ TipRect {
color: Qt.tint(activPal.base, Noo.alpha(bg, 50))
border { width: Noo.fontSize() / 6; color: bg }
shadowRadius: Noo.fontSize() * (Noo.isAndroid() ? 0.5 : 3); horizontalOffset: Noo.fontSize() / 3; verticalOffset: horizontalOffset
shadowRadius: Noo.fontSize() * (Noo.isAndroid() ? 1 : 3)
horizontalOffset: Noo.isAndroid() ? 0 : Noo.fontSize() / 3; verticalOffset: horizontalOffset
z: 200
x: Noo.bound(shadowRadius, offX - width / 2, executor.width - width - shadowRadius)
y: Noo.bound(shadowRadius, offY - height / 2, executor.height - height - shadowRadius)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment