• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 226 227 228 229 230 ... 1192 Next »

Dolphin 5.0-8905 GUI font size is a little small
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin 5.0-8905 GUI font size is a little small
10-15-2018, 04:21 PM
#1
yeh Offline
Junior Member
**
Posts: 22
Threads: 6
Joined: Oct 2018
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  
Find
Reply
10-16-2018, 03:33 AM
#2
Der Siebte Schatten Offline
Großmeister der Finsternis
***
Posts: 72
Threads: 7
Joined: Nov 2017
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/30684764/increase-font-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?
[Image: Signature-forum.png]
MSI Desktop: Intel Core i7-9700K 3.6 GHz/4.7 GHz, 32 Go DDR4, NVidia GeForce RTX 2080, 512 Go SSD + 2 To HDD, Windows 10 Professional x64 Insider Preview (Slow Ring)... and of course latest Dolphin x64 development build!
Website Find
Reply
10-16-2018, 09:29 AM
#3
addestroyer Offline
Junior Member
**
Posts: 41
Threads: 4
Joined: Nov 2017
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
Find
Reply
10-16-2018, 11:50 AM
#4
yeh Offline
Junior Member
**
Posts: 22
Threads: 6
Joined: Oct 2018
(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? 
Find
Reply
10-16-2018, 12:12 PM (This post was last modified: 10-16-2018, 12:15 PM by yeh.)
#5
yeh Offline
Junior Member
**
Posts: 22
Threads: 6
Joined: Oct 2018
(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]


Attached Files
.css   Large font.css (Size: 28 bytes / Downloads: 129)
Find
Reply
10-16-2018, 12:38 PM (This post was last modified: 10-16-2018, 12:39 PM by yeh.)
#6
yeh Offline
Junior Member
**
Posts: 22
Threads: 6
Joined: Oct 2018
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]
Find
Reply
10-16-2018, 04:48 PM (This post was last modified: 10-16-2018, 04:50 PM by Der Siebte Schatten.)
#7
Der Siebte Schatten Offline
Großmeister der Finsternis
***
Posts: 72
Threads: 7
Joined: Nov 2017
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...
[Image: Signature-forum.png]
MSI Desktop: Intel Core i7-9700K 3.6 GHz/4.7 GHz, 32 Go DDR4, NVidia GeForce RTX 2080, 512 Go SSD + 2 To HDD, Windows 10 Professional x64 Insider Preview (Slow Ring)... and of course latest Dolphin x64 development build!
Website Find
Reply
10-16-2018, 08:17 PM
#8
yeh Offline
Junior Member
**
Posts: 22
Threads: 6
Joined: Oct 2018
(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
Find
Reply
10-17-2018, 01:24 AM
#9
addestroyer Offline
Junior Member
**
Posts: 41
Threads: 4
Joined: Nov 2017
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.
Find
Reply
10-17-2018, 02:07 AM
#10
addestroyer Offline
Junior Member
**
Posts: 41
Threads: 4
Joined: Nov 2017
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#building-for-windows
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode