Compare commits
3 Commits
66b438f644
...
7597af6464
Author | SHA1 | Date |
---|---|---|
|
7597af6464 | |
|
3093f724e6 | |
|
4c2d428e1a |
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue