summaryrefslogtreecommitdiff
path: root/raveos-calamares/0003-raveos-panelek.patch
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-calamares/0003-raveos-panelek.patch')
-rw-r--r--raveos-calamares/0003-raveos-panelek.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/raveos-calamares/0003-raveos-panelek.patch b/raveos-calamares/0003-raveos-panelek.patch
new file mode 100644
index 0000000..b548da9
--- /dev/null
+++ b/raveos-calamares/0003-raveos-panelek.patch
@@ -0,0 +1,46 @@
+--- a/src/calamares/CalamaresWindow.cpp
++++ b/src/calamares/CalamaresWindow.cpp
+@@ -294,8 +294,8 @@
+ // which seems to match what the widget navigation would use for height
+ // (with *my* specific screen, style, etc. so YMMV).
+ //
+- // Bound between (16, 64) with a default of 48.
+- qreal minimumHeight = qBound( qreal( 16 ), w->rootObject() ? w->rootObject()->height() : 48, qreal( 64 ) );
++ // Bound between (16, 96) with a default of 48.
++ qreal minimumHeight = qBound( qreal( 16 ), w->rootObject() ? w->rootObject()->height() : 48, qreal( 96 ) );
+ w->setMinimumHeight( int( minimumHeight ) );
+ w->setFixedHeight( int( minimumHeight ) );
+ }
+@@ -500,7 +500,9 @@
+ baseWidget,
+ ::getWidgetSidebar,
+ ::getQmlSidebar,
+- qBound( 100, Calamares::defaultFontHeight() * 12, w < windowPreferredWidth ? 100 : 190 ) );
++ branding->sidebarFlavor() == Calamares::Branding::PanelFlavor::Qml
++ ? 240
++ : qBound( 100, Calamares::defaultFontHeight() * 12, w < windowPreferredWidth ? 100 : 190 ) );
+ QWidget* navigation = flavoredWidget( branding->navigationFlavor(),
+ ::orientation( branding->navigationSide() ),
+ m_debugManager,
+@@ -536,6 +538,21 @@
+ Calamares::unmarginLayout( contentsLayout );
+ baseWidget->setLayout( mainLayout );
+ setStyleSheet( Calamares::Branding::instance()->stylesheet() );
++
++ auto panelekElsoLepesnel = [ this, sideBox, navigation ]()
++ {
++ const bool latszik = m_viewManager->currentStepIndex() > 0;
++ if ( sideBox )
++ {
++ sideBox->setVisible( latszik );
++ }
++ if ( navigation )
++ {
++ navigation->setVisible( latszik );
++ }
++ };
++ connect( m_viewManager, &Calamares::ViewManager::currentStepChanged, this, panelekElsoLepesnel );
++ panelekElsoLepesnel();
+ }
+
+ void