RibbonBottomBar,RibbonMenuItem,RibbonWindow,RibbonTour: Improved.
This commit is contained in:
parent
1df715bb3c
commit
2acd3c7f86
|
@ -33,11 +33,13 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Rectangle{
|
||||
RibbonRectangle{
|
||||
visible: modern_style
|
||||
color: dark_mode ? "#141414" : "#F5F5F5"
|
||||
opacity: bg_opacity
|
||||
anchors.fill: parent
|
||||
bottomLeftRadius: Qt.platform.os === 'windows' ? RibbonUI.is_win11 ? 7 : 0 : 10
|
||||
bottomRightRadius: bottomLeftRadius
|
||||
}
|
||||
|
||||
Rectangle{
|
||||
|
|
|
@ -69,7 +69,7 @@ MenuItem {
|
|||
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_size: label.contentHeight
|
||||
visible: typeof(control.icon_source) === "number"
|
||||
visible: typeof(control.icon_source) === "number" && control.icon_source
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
filled: pressed || checked
|
||||
color: text_color
|
||||
|
|
|
@ -30,6 +30,8 @@ Popup {
|
|||
leftInset: 0
|
||||
rightInset: 0
|
||||
bottomInset: 0
|
||||
x: (Overlay.overlay.width - width) / 2
|
||||
y: (Overlay.overlay.height - height) / 2
|
||||
closePolicy: Popup.NoAutoClose
|
||||
Overlay.modal:Rectangle{
|
||||
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 blurBehindWindow: true
|
||||
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
|
||||
color: {
|
||||
if (blurBehindWindow) {
|
||||
|
|
Loading…
Reference in New Issue