mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Fix JSON editor rounded footer
This commit is contained in:
parent
8986a3e6d0
commit
a74517cb09
@ -27,7 +27,7 @@ import "../Widgets" as Widgets
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
radius: jsonEditor.radius
|
||||
color: Cpp_ThemeManager.toolbarGradient2
|
||||
height: footer.implicitHeight + 4 * app.spacing
|
||||
|
||||
//
|
||||
@ -37,13 +37,29 @@ Rectangle {
|
||||
signal scrollToBottom()
|
||||
|
||||
//
|
||||
// Background & border
|
||||
// Radius compensator
|
||||
//
|
||||
border.width: 1
|
||||
border.color: Cpp_ThemeManager.toolbarGradient1
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0; color: Cpp_ThemeManager.toolbarGradient1 }
|
||||
GradientStop { position: 1; color: Cpp_ThemeManager.toolbarGradient2 }
|
||||
Rectangle {
|
||||
color: root.color
|
||||
height: root.radius
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Top border
|
||||
//
|
||||
Rectangle {
|
||||
height: 1
|
||||
color: Cpp_ThemeManager.toolbarGradient1
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -34,19 +34,10 @@ Rectangle {
|
||||
//
|
||||
Rectangle {
|
||||
id: bg
|
||||
border.width: 1
|
||||
anchors.fill: parent
|
||||
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0; color: Cpp_ThemeManager.toolbarGradient1 }
|
||||
GradientStop { position: 1; color: Cpp_ThemeManager.toolbarGradient2 }
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
border.width: 1
|
||||
anchors.fill: parent
|
||||
color: "transparent"
|
||||
border.color: Qt.darker(Cpp_ThemeManager.toolbarGradient2, 1.5)
|
||||
}
|
||||
color: Cpp_ThemeManager.toolbarGradient2
|
||||
border.color: Qt.darker(Cpp_ThemeManager.toolbarGradient2, 1.5)
|
||||
|
||||
Rectangle {
|
||||
height: 1
|
||||
|
@ -123,6 +123,7 @@ FramelessWindow.CustomWindow {
|
||||
//
|
||||
Footer {
|
||||
id: footer
|
||||
radius: root.radius
|
||||
onCloseWindow: root.close()
|
||||
onScrollToBottom: groupEditor.scrollToBottom()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user