mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Minor UI fixes
This commit is contained in:
parent
3b1069352f
commit
61ee247f9e
@ -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
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -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
|
||||
//
|
||||
|
@ -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)
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user