Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin 5.0-8905 GUI font size is a little small
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, I am trying Dolphin 5.0-8905, and I find that the GUI font size is a little smaller than before. Confused

Please compare these two:

[Image: yJrixOS.png]

How can I enlarge the GUI font size of Dolphin 5.0-8905? Huh  
Ow, you're using big fonts in Windows as I see! (150% I think?)

I'm not sure that Qt is aware of system font size like did wxWidgets. Maybe a custom css can help you out here, let me a second looking at it...

Edit: So apparently, Qt uses 9px font by default, and not the system size font like I imagined. But you can actually create a QFont object that will be the default font for the entire application. I got that from here (and the other question mentioned there): https://stackoverflow.com/questions/3068...size-in-qt
But I don't know how you can do that in CSS here (what they mentioned in Stackoverflow is in C++)... Got any ideas devs on that? Or maybe an idea to implement in a future build?
You can customize the font size with css, though I don't have a great handle on the Qt properties available or the different elements used in Dolphin. I just tested a hacky sheet that did the job of making all (?) of the text larger, though results may vary. I found that default font size for me was 15px, so I bumped the value up to 20px.

Anyway, my hacky sheet was just
Code:
* {
    font-size: 20px;
}

If you want to get more sophisticated with your customization, I would suggest looking at the links below
https://forums.dolphin-emu.org/Thread-user-style-thread
http://doc.qt.io/qt-5/stylesheet-syntax.html
(10-16-2018, 03:33 AM)Der Siebte Schatten Wrote: [ -> ]Ow, you're using big fonts in Windows as I see! (150% I think?)
Yes, you are right! Smile


(10-16-2018, 09:29 AM)addestroyer Wrote: [ -> ]You can customize the font size with css, though I don't have a great handle on the Qt properties available or the different elements used in Dolphin.  I just tested a hacky sheet that did the job of making all (?) of the text larger, though results may vary.  I found that default font size for me was 15px, so I bumped the value up to 20px.

How can I create a css file for my dolphin? Could you tell me? 
(10-16-2018, 09:29 AM)addestroyer Wrote: [ -> ]If you want to get more sophisticated with your customization, I would suggest looking at the links below

https://forums.dolphin-emu.org/Thread-user-style-thread

(10-16-2018, 11:50 AM)yeh Wrote: [ -> ]How can I create a css file for my dolphin? Could you tell me? 
Thank you, that link helps a lot. 
I have solved my problem.  Smile 

My Dolphin CSS [color=#1c1c1c]directory path is:[/color]
C:\Users\XXX\Documents\Dolphin Emulator\Styles

The attachment is my CSS file. Anyone who wants to enlarge your dolphin GUI font can use it.

[Image: CiMFK3k.png]
Now I have a new problem. The "size" label is too narrow to hold all the content. How can I widen it?

[Image: AHzbJPe.png]
Just widen the column by moving the limit on the top of the column, like in Windows Explorer... I think?
(10-16-2018, 09:29 AM)addestroyer Wrote: [ -> ]You can customize the font size with css, though I don't have a great handle on the Qt properties available or the different elements used in Dolphin. I just tested a hacky sheet that did the job of making all (?) of the text larger, though results may vary. I found that default font size for me was 15px, so I bumped the value up to 20px.

Anyway, my hacky sheet was just
Code:
* {
    font-size: 20px;
}

If you want to get more sophisticated with your customization, I would suggest looking at the links below
https://forums.dolphin-emu.org/Thread-user-style-thread
http://doc.qt.io/qt-5/stylesheet-syntax.html
I didn't know Qt let you affect all elements through CSS with *. Good to know...
(10-16-2018, 04:48 PM)Der Siebte Schatten Wrote: [ -> ]Just widen the column by moving the limit on the top of the column, like in Windows Explorer... I think?

The "Title" and "Maker" column can be widened by doing so, but the "Size" and "Banner" column seem to be fixed.  Confused
It looks like the size column is a fixed width (and several others), so I'm not sure anything can be done about that without modifying the code and recompiling...?(link)  I have no clue what constraints the fixed resize mode applies, it might still be adjustable in css, just not adjustable with the mouse?  
I spent a decent chunk of time last night trying to find a selector for just that column but couldn't find anything, though this is my first foray into using css with Qt.
From the Qt docs for fixed resize mode:
The user cannot resize the section. The section can only be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize.

aka, looks like the only way to change the column width right now is to recompile. If it's a big enough deal to you, then you could pull the source code, make the change, and build your own version, but that's a decent amount of setup and would disable auto-updates (if you use that). If you're interested in that, there are some brief directions here https://github.com/dolphin-emu/dolphin#b...or-windows
Pages: 1 2