Minor UI fixes

This commit is contained in:
Alex Spataru 2021-11-09 16:59:53 -06:00
parent 3b1069352f
commit 61ee247f9e
3 changed files with 18 additions and 3 deletions

View File

@ -40,6 +40,7 @@ Window {
//
// Window radius control
//
property int borderWidth: 2
readonly property int handleSize: radius + 5 + shadowMargin
readonly property int radius: ((root.visibility === Window.Maximized && maximizeEnabled) || fullScreen) ? 0 : 10
@ -114,12 +115,12 @@ Window {
Rectangle {
z: 1000
opacity: 0.8
border.width: 2
radius: root.radius
color: "transparent"
anchors.fill: parent
border.color: root.borderColor
anchors.margins: root.shadowMargin - 1
border.width: root.borderWidth
anchors.margins: root.shadowMargin
}
//

View File

@ -40,9 +40,14 @@ FramelessWindow.CustomWindow {
minimumWidth: 910
minimumHeight: 720
displayIcon: false
borderColor: Qt.darker(Cpp_ThemeManager.toolbarGradient2, 1.5)
title: qsTr("JSON Editor - %1").arg(Cpp_JSON_Editor.jsonFileName)
//
// Customize window border
//
borderWidth: 1
borderColor: Qt.darker(Cpp_ThemeManager.toolbarGradient2, 1.5)
//
// Ensure that current JSON file is shown
//

View File

@ -36,7 +36,16 @@ import "../PlatformDependent" as PlatformDependent
FramelessWindow.CustomWindow {
id: root
//
// Quit application when this window is closed
//
onClosed: Qt.quit()
//
// Customize window border
//
borderWidth: 1
borderColor: Qt.darker(Cpp_ThemeManager.toolbarGradient2, 1.5)
//