[branding] adopt the enum names as keys
This commit is contained in:
parent
b419ce34ca
commit
73e4c46756
@ -180,10 +180,10 @@ images:
|
|||||||
# branding component also ships a stylesheet.qss. Then they are
|
# branding component also ships a stylesheet.qss. Then they are
|
||||||
# the corresponding CSS attributes of #sidebarApp.
|
# the corresponding CSS attributes of #sidebarApp.
|
||||||
style:
|
style:
|
||||||
sidebarBackground: "#263238"
|
SidebarBackground: "#263238"
|
||||||
sidebarText: "#efefef"
|
SidebarText: "#efefef"
|
||||||
sidebarTextSelect: "#4d915e"
|
SidebarTextCurrent: "#4d915e"
|
||||||
sidebarTextHighlight: "#1a1c1b"
|
SidebarTextHighlight: "#1a1c1b"
|
||||||
|
|
||||||
|
|
||||||
### SLIDESHOW
|
### SLIDESHOW
|
||||||
|
@ -269,10 +269,11 @@ CalamaresApplication::initViewSteps()
|
|||||||
{
|
{
|
||||||
cDebug() << "STARTUP: loadModules for all modules done";
|
cDebug() << "STARTUP: loadModules for all modules done";
|
||||||
m_moduleManager->checkRequirements();
|
m_moduleManager->checkRequirements();
|
||||||
if ( Calamares::Branding::instance()->windowMaximize() )
|
if ( Calamares::Branding::instance()->windowFullscreen() )
|
||||||
{
|
{
|
||||||
m_mainwindow->setWindowFlag( Qt::FramelessWindowHint );
|
m_mainwindow->setWindowFlag( Qt::FramelessWindowHint );
|
||||||
m_mainwindow->showMaximized();
|
m_mainwindow->setWindowFlag( Qt::WindowStaysOnTopHint );
|
||||||
|
m_mainwindow->showFullscreen();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -219,7 +219,7 @@ public:
|
|||||||
|
|
||||||
bool welcomeStyleCalamares() const { return m_welcomeStyleCalamares; }
|
bool welcomeStyleCalamares() const { return m_welcomeStyleCalamares; }
|
||||||
bool welcomeExpandingLogo() const { return m_welcomeExpandingLogo; }
|
bool welcomeExpandingLogo() const { return m_welcomeExpandingLogo; }
|
||||||
bool windowMaximize() const { return m_windowExpansion == WindowExpansion::Fullscreen; }
|
bool windowFullscreen() const { return m_windowExpansion == WindowExpansion::Fullscreen; }
|
||||||
bool windowExpands() const { return m_windowExpansion != WindowExpansion::Fixed; }
|
bool windowExpands() const { return m_windowExpansion != WindowExpansion::Fixed; }
|
||||||
QPair< WindowDimension, WindowDimension > windowSize() const
|
QPair< WindowDimension, WindowDimension > windowSize() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user