Commit 7c3ae4a6 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ComboBox): use TransparentCombobox in manageAccounts

parent f41720a1
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<file>ui/components/dialog/DialogPlus.qml</file> <file>ui/components/dialog/DialogPlus.qml</file>
<file>ui/components/form/Collapse.qml</file> <file>ui/components/form/Collapse.qml</file>
<file>ui/components/form/DialogButton.qml</file> <file>ui/components/form/DialogButton.qml</file>
<file>ui/components/form/DialogComboBox.qml</file>
<file>ui/components/form/RoundButton.qml</file> <file>ui/components/form/RoundButton.qml</file>
<file>ui/components/form/ToolBarButton.qml</file> <file>ui/components/form/ToolBarButton.qml</file>
<file>ui/components/form/TransparentComboBox.qml</file>
<file>ui/views/mainWindow.qml</file> <file>ui/views/mainWindow.qml</file>
<file>ui/views/manageAccounts.qml</file> <file>ui/views/manageAccounts.qml</file>
......
import QtQuick 2.7
import QtQuick.Controls 2.0
ComboBox {
background: Rectangle {
color: 'transparent'
}
id: comboBox
}
import QtQuick 2.7
import QtQuick.Controls 2.0
ComboBox {
background: Rectangle {
color: 'transparent'
}
id: comboBox
delegate: ItemDelegate {
background: Rectangle {
color: delegate.down
? '#FE5E00'
: (
comboBox.currentIndex === index
? '#F0F0F0'
: '#FFFFFF'
)
opacity: enabled ? 1 : 0.3
}
font.weight: comboBox.currentIndex === index
? Font.DemiBold
: Font.Normal
id: delegate
text: key || modelData
width: comboBox.width
}
}
...@@ -36,8 +36,7 @@ ApplicationWindow { ...@@ -36,8 +36,7 @@ ApplicationWindow {
console.debug('Error:' + component.errorString()) console.debug('Error:' + component.errorString())
} }
} else { } else {
var win = component.createObject(mainWindow); component.createObject(mainWindow).show()
win.show();
} }
} }
} }
......
...@@ -17,7 +17,6 @@ DialogPlus { ...@@ -17,7 +17,6 @@ DialogPlus {
text: qsTr('validate') text: qsTr('validate')
} }
// Accounts list.
Item { Item {
id: listViewContainer id: listViewContainer
anchors.fill: parent anchors.fill: parent
...@@ -136,7 +135,7 @@ DialogPlus { ...@@ -136,7 +135,7 @@ DialogPlus {
Layout.fillHeight: parent.height Layout.fillHeight: parent.height
Layout.preferredWidth: 160 Layout.preferredWidth: 160
DialogComboBox { TransparentComboBox {
anchors.fill: parent anchors.fill: parent
model: ListModel { model: ListModel {
ListElement { key: qsTr('onlinePresence'); value: 1 } ListElement { key: qsTr('onlinePresence'); value: 1 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment