How can I make that always show the Statusbar

Hello, I work on some patches and for one I need a function to see the Statusbar in a setting page. It patch changed, all Statusbar fonts ans alos the iconsize. I tryed so manny Ideas e.g. load the StatusBar.qml in this page or make the page smaler, but the UI not reakt on this. Could anybody help mi with some QML lines please?

My settingspage start so:

— /dev/null
b/usr/share/jolla-settings/pages/sailfishos-patch-statusbarfonts2/CustomSettings.qml
@@ -0,0 0,214 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
import org.nemomobile.configuration 1.0

// Version 2.0.32

Page {
id: page

property int i: 1
property int heightswitches: 120

SilicaFlickable {
    anchors.fill: parent
    contentHeight: column.height

    Column {
        id: column
        width: page.width
        spacing: Theme.paddingLarge

        PageHeader {
            title: "Status bar fonts"
        }

        TextSwitch {....

I think I need some lines under “id: page”.

I tested import “../StatusBar.qml” and Loader { StatusBar{} } or height: windows.height / 2 or display.heigt / 2 or screen.heigt / 2 or x: 100; y 100 but nothing runs.

I think a feature to see the statusbar every tim also in apps is a good Idea not only for my case. Thanks in andvance.

I don’t think you can do that from an App. App windows are always fullscreen and hide the home area.
You’ll have to hack lipstick-jolla-home somehow to show it over app windows. Not sure whether that’s easily possible.

For a ‘preview’ in a Settings page you can of course just simulate it by copying the relevant code pieces. I do something like that in the ‘Powerdrain on Statusbar’ patch.

2 Likes

Thanks so I will do it with a small own Row for a StatusBar preview in settings. I am in programm fever after the MazeLock2.0 patch :grinning_face: . This was mutch work and I learned mutch more.

2 Likes

How does the black top line patch for c2 work ?
But that might be just some black rectangle

That changes /usr/share/lipstick-jolla-home-qt5/statusarea/StatusArea.qml and yes it basically just adds a black rectangle on the top which pushes the ststus bar down.

1 Like

I have created now an own dummy Statusbar now :slight_smile: for my settings page. Thanks a lot.

I will upload this patch also in the webcataloge. (the settings are in DE and EN)

4 Likes