RibbonBottomBar,RibbonMenuItem,RibbonWindow,RibbonTour: Improved.
This commit is contained in:
parent
1df715bb3c
commit
2acd3c7f86
|
@ -33,11 +33,13 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle{
|
RibbonRectangle{
|
||||||
visible: modern_style
|
visible: modern_style
|
||||||
color: dark_mode ? "#141414" : "#F5F5F5"
|
color: dark_mode ? "#141414" : "#F5F5F5"
|
||||||
opacity: bg_opacity
|
opacity: bg_opacity
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
bottomLeftRadius: Qt.platform.os === 'windows' ? RibbonUI.is_win11 ? 7 : 0 : 10
|
||||||
|
bottomRightRadius: bottomLeftRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
|
|
|
@ -69,7 +69,7 @@ MenuItem {
|
||||||
icon_source: typeof(control.icon_source) === "number" ? control.icon_source : 0
|
icon_source: typeof(control.icon_source) === "number" ? control.icon_source : 0
|
||||||
icon_source_filled: typeof(control.icon_source_filled) === "number" ? control.icon_source_filled : icon_source
|
icon_source_filled: typeof(control.icon_source_filled) === "number" ? control.icon_source_filled : icon_source
|
||||||
icon_size: label.contentHeight
|
icon_size: label.contentHeight
|
||||||
visible: typeof(control.icon_source) === "number"
|
visible: typeof(control.icon_source) === "number" && control.icon_source
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
filled: pressed || checked
|
filled: pressed || checked
|
||||||
color: text_color
|
color: text_color
|
||||||
|
|
|
@ -30,6 +30,8 @@ Popup {
|
||||||
leftInset: 0
|
leftInset: 0
|
||||||
rightInset: 0
|
rightInset: 0
|
||||||
bottomInset: 0
|
bottomInset: 0
|
||||||
|
x: (Overlay.overlay.width - width) / 2
|
||||||
|
y: (Overlay.overlay.height - height) / 2
|
||||||
closePolicy: Popup.NoAutoClose
|
closePolicy: Popup.NoAutoClose
|
||||||
Overlay.modal:Rectangle{
|
Overlay.modal:Rectangle{
|
||||||
color: !RibbonTheme.dark_mode ? Qt.alpha("white", 0.5) : Qt.alpha("black", 0.5)
|
color: !RibbonTheme.dark_mode ? Qt.alpha("white", 0.5) : Qt.alpha("black", 0.5)
|
||||||
|
|
|
@ -18,6 +18,8 @@ Window {
|
||||||
property bool comfirmed_quit: false
|
property bool comfirmed_quit: false
|
||||||
property bool blurBehindWindow: true
|
property bool blurBehindWindow: true
|
||||||
property int windows_top_fix: Qt.platform.os === 'windows' ? 1 : 0 // a trick to fix Qt or QWindowKit's bug
|
property int windows_top_fix: Qt.platform.os === 'windows' ? 1 : 0 // a trick to fix Qt or QWindowKit's bug
|
||||||
|
readonly property int borderWidth: border_rect.border.width
|
||||||
|
readonly property int borderRadius: border_rect.radius
|
||||||
visible: false
|
visible: false
|
||||||
color: {
|
color: {
|
||||||
if (blurBehindWindow) {
|
if (blurBehindWindow) {
|
||||||
|
|
Loading…
Reference in New Issue