fix: allow resizing nexus window + set screen for attached props
This commit is contained in:
parent
45fbe9e560
commit
affbce4ffb
2 changed files with 8 additions and 4 deletions
|
|
@ -2,6 +2,7 @@ pragma Singleton
|
|||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Caelestia.Config
|
||||
import qs.components
|
||||
import qs.services
|
||||
import qs.modules.nexus
|
||||
|
|
@ -33,10 +34,11 @@ Singleton {
|
|||
implicitWidth: nexus.implicitWidth
|
||||
implicitHeight: nexus.implicitHeight
|
||||
|
||||
minimumSize.width: implicitWidth
|
||||
minimumSize.height: implicitHeight
|
||||
maximumSize.width: implicitWidth
|
||||
maximumSize.height: implicitHeight
|
||||
minimumSize.width: contentItem.Tokens.sizes.nexus.minWidth
|
||||
minimumSize.height: contentItem.Tokens.sizes.nexus.minHeight
|
||||
|
||||
contentItem.Config.screen: screen.name
|
||||
contentItem.Tokens.screen: screen.name
|
||||
|
||||
title: qsTr("Nexus — %1").arg(PageRegistry.pages[nexus.nState.currentPageIdx].label)
|
||||
|
||||
|
|
|
|||
|
|
@ -329,6 +329,8 @@ class NexusTokens : public ConfigObject {
|
|||
|
||||
CONFIG_PROPERTY(qreal, heightMult, 0.7)
|
||||
CONFIG_PROPERTY(qreal, ratio, 16.0 / 9.0)
|
||||
CONFIG_PROPERTY(qreal, minWidth, 800)
|
||||
CONFIG_PROPERTY(qreal, minHeight, 500)
|
||||
|
||||
public:
|
||||
explicit NexusTokens(QObject* parent = nullptr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue