mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Fix palette in popups
This commit is contained in:
parent
8485e7ae81
commit
04c9eec8a4
5 changed files with 18 additions and 6 deletions
|
@ -24,6 +24,9 @@ Control {
|
||||||
property int rowMargin: 0
|
property int rowMargin: 0
|
||||||
property int rowSpacing: Nheko.paddingSmall
|
property int rowSpacing: Nheko.paddingSmall
|
||||||
|
|
||||||
|
// Workaround palettes not inheriting for popups
|
||||||
|
palette: timelineRoot.palette
|
||||||
|
|
||||||
signal completionClicked(string completion)
|
signal completionClicked(string completion)
|
||||||
signal completionSelected(string id)
|
signal completionSelected(string id)
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@ Popup {
|
||||||
x: Math.round(parent.width / 2 - width / 2)
|
x: Math.round(parent.width / 2 - width / 2)
|
||||||
y: Math.round(parent.height / 4)
|
y: Math.round(parent.height / 4)
|
||||||
|
|
||||||
|
// Workaround palettes not inheriting for popups
|
||||||
|
palette: timelineRoot.palette
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
Overlay.modal: Rectangle {
|
||||||
color: Qt.rgba(palette.window.r, palette.window.g, palette.window.b, 0.7)
|
color: Qt.rgba(palette.window.r, palette.window.g, palette.window.b, 0.7)
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,9 @@ Popup {
|
||||||
x: Math.round(parent.width / 2 - contentWidth / 2)
|
x: Math.round(parent.width / 2 - contentWidth / 2)
|
||||||
y: Math.round(parent.height / 4)
|
y: Math.round(parent.height / 4)
|
||||||
|
|
||||||
|
// Workaround palettes not inheriting for popups
|
||||||
|
palette: timelineRoot.palette
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
Overlay.modal: Rectangle {
|
||||||
color: "#aa1E1E1E"
|
color: "#aa1E1E1E"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,12 +10,12 @@ import "./pages"
|
||||||
import "./voip"
|
import "./voip"
|
||||||
import "./ui"
|
import "./ui"
|
||||||
import Qt.labs.platform 1.1 as Platform
|
import Qt.labs.platform 1.1 as Platform
|
||||||
import QtQuick 2.15
|
import QtQuick
|
||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts
|
||||||
import QtQuick.Window 2.15
|
import QtQuick.Window
|
||||||
import im.nheko 1.0
|
import im.nheko
|
||||||
import im.nheko.EmojiModel 1.0
|
import im.nheko.EmojiModel
|
||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
id: timelineRoot
|
id: timelineRoot
|
||||||
|
|
|
@ -9,6 +9,9 @@ import im.nheko 1.0
|
||||||
Popup {
|
Popup {
|
||||||
id: snackbar
|
id: snackbar
|
||||||
|
|
||||||
|
// Workaround palettes not inheriting for popups
|
||||||
|
palette: timelineRoot.palette
|
||||||
|
|
||||||
property var messages: []
|
property var messages: []
|
||||||
property string currentMessage: ""
|
property string currentMessage: ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue