Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ FlatRadioButton {
spacing: 4

StyledTextLabel {
id: titleLabel
Layout.alignment: Qt.AlignLeft
Layout.fillWidth: root.implicitContentWidth > 200
Layout.preferredWidth: implicitWidth
Layout.leftMargin: 12

horizontalAlignment: Text.AlignLeft

font: ui.theme.bodyFont
text: (root.needSave ? "*" : "") + root.text
}

Expand Down Expand Up @@ -95,15 +97,6 @@ FlatRadioButton {

color: ui.theme.backgroundSecondaryColor

Rectangle {
id: backgroundInner
anchors.fill: parent

visible: false
color: "white"
opacity: 0.05
}

NavigationFocusBorder {
navigationCtrl: root.navigation
drawOutsideParent: false
Expand Down Expand Up @@ -145,12 +138,12 @@ FlatRadioButton {

PropertyChanges {
target: background
color: ui.theme.popupBackgroundColor
color: ui.theme.backgroundPrimaryColor
}

PropertyChanges {
target: backgroundInner
visible: true
target: titleLabel
font: ui.theme.bodyBoldFont
}
},

Expand All @@ -160,17 +153,7 @@ FlatRadioButton {

PropertyChanges {
target: background
color: Utils.colorWithAlpha(ui.theme.buttonColor, ui.theme.buttonOpacityHover)
}
},

State {
name: "PRESSED"
when: root.pressed

PropertyChanges {
target: background
color: Utils.colorWithAlpha(ui.theme.buttonColor, ui.theme.buttonOpacityHit)
color: Utils.colorWithAlpha(ui.theme.backgroundPrimaryColor, ui.theme.buttonOpacityHover)
}
}
]
Expand Down
Loading