Fix font thread warning

pull/11/head
cutefishd 5 years ago
parent 8e333720a6
commit dae5ce8782

@ -33,8 +33,8 @@
FontsModel::FontsModel(QObject *parent)
: QThread(parent)
{
QThread::setPriority(QThread::HighestPriority);
QThread::start();
QThread::setPriority(QThread::HighestPriority);
}
void FontsModel::run()

@ -58,6 +58,7 @@ Dialog {
passwordField.text != "" &&
passwordField.text == verifyPasswordField.text
DialogButtonBox.buttonRole: DialogButtonBox.Ok
flat: true
onClicked: {
if (manager.createUser(userNameField.text, "", accountTypeCombo.currentIndex))
control.accept()

@ -128,26 +128,32 @@ ItemPage {
delegate: Rectangle {
property bool checked: Qt.colorEqual(Meui.Theme.highlightColor, accentColor)
property color currentColor: accentColor
width: accentColorView.itemSize + Meui.Units.largeSpacing
height: width
color: "transparent"
radius: width / 2
border.color: Qt.rgba(Meui.Theme.highlightColor.r,
Meui.Theme.highlightColor.g,
Meui.Theme.highlightColor.b, 0.5)
border.width: checked ? 2 : 0
border.color: _mouseArea.pressed ? Qt.rgba(currentColor.r,
currentColor.g,
currentColor.b, 0.6)
: Qt.rgba(currentColor.r,
currentColor.g,
currentColor.b, 0.4)
border.width: checked ? 3 : _mouseArea.containsMouse ? 2 : 0
MouseArea {
id: _mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: appearance.setAccentColor(index)
}
Rectangle {
color: accentColor
width: 32
height: width
anchors.centerIn: parent
color: currentColor
radius: width / 2
Image {
@ -166,14 +172,6 @@ ItemPage {
visible: true
}
}
MouseArea {
anchors.fill: parent
onClicked: function() {
appearance.setAccentColor(index)
console.log(`Set accent color to ${index}.`)
}
}
}
}
}

@ -30,12 +30,14 @@ Item {
color: "transparent"
border.width: 3
border.color: control.checked ? Meui.Theme.highlightColor : "transparent"
Behavior on border.color {
ColorAnimation {
duration: 125
easing.type: Easing.InOutCubic
}
}
radius: Meui.Theme.bigRadius + control.iconSpacing
visible: true

@ -35,6 +35,7 @@ Dialog {
id: detailsLayout
// I couldn't find a way of making the GridLayout resize.
anchors.centerIn: parent
GridLayout {
id: gridLayout
columns: 2

Loading…
Cancel
Save