Sorry this is a huge commit, this actually includes a ton of stuff. Text color is now readable, multiple accounts are supported alongside end-to-end encryption but no cross-signing yet :-) There's also a whole lot of other small changes, such as choosing the server you want to request a room directory from.
36 lines
765 B
QML
Executable file
36 lines
765 B
QML
Executable file
import QtQuick 2.15
|
|
import QtGraphicalEffects 1.0
|
|
import QtQuick.Controls 2.3
|
|
|
|
Item {
|
|
property var source: String
|
|
|
|
Image {
|
|
id: image
|
|
|
|
cache: true
|
|
|
|
width: parent.width
|
|
height: parent.height
|
|
|
|
sourceSize.width: parent.width
|
|
sourceSize.height: parent.height
|
|
|
|
source: parent.source
|
|
|
|
layer.enabled: true
|
|
layer.effect: OpacityMask {
|
|
maskSource: Item {
|
|
width: image.width
|
|
height: image.height
|
|
Rectangle {
|
|
anchors.centerIn: parent
|
|
width: image.width
|
|
height: image.height
|
|
radius: Math.min(width, height)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|