Compare commits

..

3 Commits

1 changed files with 13 additions and 1 deletions

View File

@ -112,7 +112,6 @@ Item {
RibbonButton{
id: maximizeBtn
show_bg:false
show_tooltip: Qt.platform.os !== "windows"
icon_source: Window.window.visibility === Window.Maximized ? RibbonIcons.ArrowMinimize : RibbonIcons.ArrowMaximize
text_color: titleBar.title_text_color
hover_color: "#61C554"
@ -156,5 +155,18 @@ Item {
checked: RibbonTheme.dark_mode
visible: show_darkmode_btn
}
RibbonButton{
id: pinBtn
show_bg:false
icon_source: checked ? RibbonIcons.Pin : RibbonIcons.PinOff
icon_source_filled: checked ? RibbonIcons_Filled.Pin : RibbonIcons_Filled.PinOff
checkable: true
text_color: title_text_color
hover_color: Qt.rgba(0,0,0, 0.3)
pressed_color: Qt.rgba(0,0,0, 0.4)
text_color_reverse: false
tip_text: qsTr("Stay on Top")
onClicked: Window.window.flags ^= Qt.WindowStaysOnTopHint
}
}
}