The DnD Sanctuary

Pings => Otter Browser Forum => Topic started by: ray on 2016-06-01, 02:40:12

Title: Increase font size in address bar
Post by: ray on 2016-06-01, 02:40:12
Hi,

I've been following Otter on-and-off since the project was announced and I like how Otter is progressing!

One thing that I would love to see is the ability to set the font size of the address bar.  On Windows, the address bar looks really tiny compared to the icons:

(https://dndsanctuary.eu/imagecache.php?image=http%3A%2F%2Ftinyimg.io%2Fi%2FgZPMn2H.png&hash=943927d2efb5413444349d9b27fef0f5" rel="cached" data-hash="943927d2efb5413444349d9b27fef0f5" data-warn="External image, click here to view original" data-url="http://tinyimg.io/i/gZPMn2H.png)

Thanks Emdek for continuing development on Otter.
Title: Re: Increase font size in address bar
Post by: ersi on 2016-06-01, 05:07:52
In Opera this was possible to change by changing the toolbar fonts in Preferences > Advanced > Fonts. This of course changed the fonts in all the toolbars. Do you want to change just the address bar? Maybe something can be done with custom CSS https://dndsanctuary.eu/index.php?topic=1750.msg62254
Title: Re: Increase font size in address bar
Post by: ray on 2016-06-01, 18:51:06
Do you want to change just the address bar?
Yes, just the address bar.

This would be a departure from Opera v12.

Maybe something can be done with custom CSS
About custom CSS, I'm not too familiar with Qt to know what the element of just the address bar is.  I can experiment if someone can help me out here :)
Title: Re: Increase font size in address bar
Post by: ray on 2016-06-02, 07:49:35
From some trial-and-error, I found that QComboBox handles the address bar.

So you can style it like this in a custom stylesheet:

Code: [Select]
QComboBox {font-size: 18px;}

However, this changes all combo boxes including those in the settings area.  If anyone knows if it is possible to target just the address bar's QComboBox, I would appreciate it.
Title: Re: Increase font size in address bar
Post by: Frenzie on 2016-06-02, 10:47:46
I think it should be possible to do something like QComboBox#AddressWidget,[1] except that isn't quite right (i.e., it doesn't work). But maybe something like only QComboBoxes that are direct children of QToolBars will do the trick:

Code: [Select]
QToolBar > QComboBox {font-size: 18px;}
That would match a QComboBox whose object name is AddressWidget.
Title: Re: Increase font size in address bar
Post by: ray on 2016-06-02, 18:12:19
Thanks Frenzie!  That works.
Title: Re: Increase font size in address bar
Post by: Emdek on 2016-06-17, 12:25:18
We are also planning to add font settings for interface:
https://github.com/OtterBrowser/otter-browser/issues/847