SailfishBrowser

I’m trying to play with the builtin browser but I’m falling with it :frowning:
Maybe someone knows where in the SFOS browser qml files is located the address/tool bar?
I mean the bottom field that holds the page, back button, url and settings button.
What I found is it looks like it’s Toolbar.qml but then I can’t locate where is it animated.
Anyone got any hints?

1 Like

I think you can find the qml of the browser in the official SFOS repository sailfish-browser/apps/browser/qml at master · sailfishos/sailfish-browser · GitHub
I think this is the toolbar:
sailfish-browser/ToolBar.qml at master · sailfishos/sailfish-browser · GitHub

You can find for example the menu button here. This button is part of the MouseArea. I assume that this is the label of the URL
To examine what an image of a button looks like, the Jolla website can be helpful.

File location on the phone:

find . -name ToolBar.qml 2>/dev/null
./usr/share/sailfish-browser/pages/components/ToolBar.qml
./usr/lib/qt5/qml/Sailfish/Office/ToolBar.qml
1 Like
/usr/share/sailfish-browser/pages/components/ToolBar.qml
1 Like

@Edz @Systematics thank you very much for you support but as I mentioned, I found the Toolbar.qml file. What I can’t find is where is it animated. I’m trying to find what’s hiding it when user is moving the page.

1 Like

State machine is located here: sailfish-browser/OverlayAnimator.qml at next · sailfishos/sailfish-browser · GitHub

For debugging purposes it’s handy to console.trace() on state change.

thank you!
I was looking at the OverlayAnimator also but hmm will dig this more then.
For the console.trace() where the logs will be printed out? Console? Then I need to launch browser from a terminal or some other place?

Logs are printed to journal. You can use pid or exe path to filter it. Also staring from terminal works.

thank you, I’ll check this out!

thanks everything worked.
Please follow this thread :slight_smile:

Apologies for telling you what you already knew with regard to the right file/content…I’ve slipped back into an old habit of speed reading stuff…doh!, time to rewind and read carefully and concisely.

1 Like

nah, no worries, happens when we want to quickly reply :slight_smile:

1 Like