Skip to content

Commit

Permalink
fixed platform dependant cell radius
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Jan 3, 2025
1 parent 2fd5774 commit 7371e4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions MainWindow/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ MainWindow::MainWindow(QObject *parent)

qDebug() << isWindows10 << isWindows11 << isLinux;

engine->rootContext()->setContextProperty("isWindows10", isWindows10);
engine->rootContext()->setContextProperty("isWindows11", isWindows11);
engine->rootContext()->setContextProperty("isLinux", isLinux);
engine->rootContext()->setContextProperty("windows10", isWindows10);
engine->rootContext()->setContextProperty("windows11", isWindows11);
engine->rootContext()->setContextProperty("linux", isLinux);
engine->rootContext()->setContextProperty("mainWindow", this);
engine->rootContext()->setContextProperty("isDarkMode", darkMode);
engine->rootContext()->setContextProperty("accentColor", accentColor);
Expand Down
7 changes: 6 additions & 1 deletion Resources/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,12 @@ ApplicationWindow {
Rectangle {
anchors.fill: parent
border.width: 2
radius: isWindows10 ? 0 : (isWindows11 ? 4 : (isLinux ? 3 : 2))
radius: {
if (isWindows10) return 0
else if (isWindows11) return 4
else if (isLinux) return 3
else return 2
}
border.color: darkMode ? Qt.rgba(1, 1, 1, 0.15) : Qt.rgba(0, 0, 0, 0.15)
visible: parent.flat
color: "transparent"
Expand Down

0 comments on commit 7371e4f

Please sign in to comment.