mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 06:45:48 +00:00
Bug fixing
* fix bug with invalid applet and configuration load with newest qt * fix bug with invalid DP configuration * fix bug with invalid HTML tags operations
This commit is contained in:
@ -39,8 +39,8 @@ Item {
|
||||
property alias cfg_currentFontSize: fontSize.value
|
||||
property string cfg_currentFontWeight: fontWeight.value
|
||||
property string cfg_currentFontStyle: fontStyle.value
|
||||
property alias cfg_currentFontColor: selectColor.text
|
||||
property alias cfg_currentTextStyleColor: selectStyleColor.text
|
||||
property alias cfg_currentFontColor: selectColor.value
|
||||
property alias cfg_currentTextStyleColor: selectStyleColor.value
|
||||
property string cfg_currentTextStyle: textStyle.value
|
||||
|
||||
|
||||
@ -65,7 +65,7 @@ Item {
|
||||
|
||||
ComboBoxSelector {
|
||||
id: fontWeight
|
||||
model: general.fontWeightModel
|
||||
model: General.fontWeightModel
|
||||
text: i18n("Font weight")
|
||||
value: plasmoid.configuration.currentFontWeight
|
||||
onValueEdited: cfg_currentFontWeight = newValue
|
||||
@ -73,7 +73,7 @@ Item {
|
||||
|
||||
ComboBoxSelector {
|
||||
id: fontStyle
|
||||
model: general.fontStyleModel
|
||||
model: General.fontStyleModel
|
||||
text: i18n("Font style")
|
||||
value: plasmoid.configuration.currentFontStyle
|
||||
onValueEdited: cfg_currentFontStyle = newValue
|
||||
@ -87,7 +87,7 @@ Item {
|
||||
|
||||
ComboBoxSelector {
|
||||
id: textStyle
|
||||
model: general.textStyleModel
|
||||
model: General.textStyleModel
|
||||
text: i18n("Style")
|
||||
value: plasmoid.configuration.currentTextStyle
|
||||
onValueEdited: cfg_currentTextStyle = newValue
|
||||
|
@ -65,7 +65,7 @@ Item {
|
||||
|
||||
ComboBoxSelector {
|
||||
id: fontWeight
|
||||
model: general.fontWeightModel
|
||||
model: General.fontWeightModel
|
||||
text: i18n("Font weight")
|
||||
value: plasmoid.configuration.fontWeight
|
||||
onValueEdited: cfg_fontWeight = newValue
|
||||
@ -73,7 +73,7 @@ Item {
|
||||
|
||||
ComboBoxSelector {
|
||||
id: fontStyle
|
||||
model: general.fontStyleModel
|
||||
model: General.fontStyleModel
|
||||
text: i18n("Font style")
|
||||
value: plasmoid.configuration.fontStyle
|
||||
onValueEdited: cfg_fontStyle = newValue
|
||||
@ -87,7 +87,7 @@ Item {
|
||||
|
||||
ComboBoxSelector {
|
||||
id: textStyle
|
||||
model: general.textStyleModel
|
||||
model: General.textStyleModel
|
||||
text: i18n("Style")
|
||||
value: plasmoid.configuration.textStyle
|
||||
onValueEdited: cfg_textStyle = newValue
|
||||
|
@ -123,16 +123,16 @@ Item {
|
||||
repeater.itemAt(i).font.family = plasmoid.configuration.currentFontFamily
|
||||
repeater.itemAt(i).font.italic = plasmoid.configuration.currentFontStyle == "italic" ? true : false
|
||||
repeater.itemAt(i).font.pointSize = plasmoid.configuration.currentFontSize
|
||||
repeater.itemAt(i).font.weight = general.fontWeight[plasmoid.configuration.currentFontWeight]
|
||||
repeater.itemAt(i).style = general.textStyle[plasmoid.configuration.currentTextStyle]
|
||||
repeater.itemAt(i).font.weight = General.fontWeight[plasmoid.configuration.currentFontWeight]
|
||||
repeater.itemAt(i).style = General.textStyle[plasmoid.configuration.currentTextStyle]
|
||||
repeater.itemAt(i).styleColor = plasmoid.configuration.currentTextStyleColor
|
||||
} else {
|
||||
repeater.itemAt(i).color = plasmoid.configuration.fontColor
|
||||
repeater.itemAt(i).font.family = plasmoid.configuration.fontFamily
|
||||
repeater.itemAt(i).font.italic = plasmoid.configuration.fontStyle == "italic" ? true : false
|
||||
repeater.itemAt(i).font.pointSize = plasmoid.configuration.fontSize
|
||||
repeater.itemAt(i).font.weight = general.fontWeight[plasmoid.configuration.fontWeight]
|
||||
repeater.itemAt(i).style = general.textStyle[plasmoid.configuration.textStyle]
|
||||
repeater.itemAt(i).font.weight = General.fontWeight[plasmoid.configuration.fontWeight]
|
||||
repeater.itemAt(i).style = General.textStyle[plasmoid.configuration.textStyle]
|
||||
repeater.itemAt(i).styleColor = plasmoid.configuration.textStyleColor
|
||||
}
|
||||
repeater.itemAt(i).update()
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
# common QML constants
|
||||
singleton general 1.0 file:///usr/share/awesomewidgets/qml/general.qml
|
||||
singleton General 1.0 file:///usr/share/awesomewidgets/qml/General.qml
|
||||
|
||||
# custom QML UI classes
|
||||
AboutTab file:///usr/share/awesomewidgets/qml/AboutTab.qml
|
||||
|
@ -52,7 +52,7 @@ Item {
|
||||
backend: dpAdds
|
||||
notifyBackend: dpAdds
|
||||
textArea: textPattern
|
||||
groups: general.dpTagRegexp
|
||||
groups: General.dpTagRegexp
|
||||
}
|
||||
|
||||
AWTextEditor {
|
||||
|
Reference in New Issue
Block a user