Menu

#11 Changing button font & sizes for a theme

1.15.0.0
closed
None
2018-04-30
2017-12-30
Sp3ctre18
No

Yes, I've read that it's "easy" to change the fonts, but I don't know how and where exactly do it. I don't know this code and simple looked at it and figured it out myself to manage to modify the Dark theme into a Star Trek LCARS theme, changing everything I wanted except for the font and font sizes of the buttons and their items' descriptions.

I've attached a picture. The fonts are actually mostly OK for me (just an apparent bold and the size may be an issue), but that's only because those are my system fonts. I want to define it explicitly. Only Simple@ seems to change the font to one small and clear like I'd like, but I can't figure out how it's doing it. There's a default.xaml that seems to define them, but I'm not sure how it's being referenced in SharedStyles - IF it's even happening there.

I want to get to 2 goals
1. Define one of my installed fonts and its size, so I can tune it exactly how I want.
2. List fonts to try (a custom font family) with their own respective font sizes.

The latter is because I'd want to let others use my theme, but not everyone will have LCARS.ttf. Many may have Hattenschwieler (sp?) but will need a different size; same issue if I list Impact as the next alternative. Only after the check for the most LCARS-like fonts are exhausted will I list a standard font family like Helvetica or Arial (or whatever they are).

Thanks.

PS: You may simply reference your "Dark" theme files. I did not add any extra code or files, just changed color valuess.

PS #2: I think this is finally the most appropriate place to say, thanks a lot of making this software and distriburing it as you are, and your apparent attention to keep working on it and address bugs, requests, etc. As simple as it looks, it's a slightly unique take on the dock/launcher scene and seems to work very well, quite smoothly, and just looks pretty polished despite its apparent simplicity. The theming support looks awesome too. Great work, and much appreciated.

1 Attachments

Discussion

  • Sp3ctre18

    Sp3ctre18 - 2017-12-30

    [self-removed]

     

    Last edit: Sp3ctre18 2017-12-30
  • madproton

    madproton - 2017-12-30

    When you select one of the Dark/Light themes in [Settings] >[ Theme ...], the [Customize] button should become available(not grayed). Click [Customize] and another window appears where you can change the look of "most" of the program. Almost every little part of the main interface.

    The GUI part names are ... I think self explanatory and changes are instantaneous.

    If a setting is changed(eg. font size, color, background, etc.), a file called (custom.xaml) is created. It is the same as default.xaml but with the new settings.

    If you want to distribute it, you can rename custom.xaml to default.xaml and zip it.

     
  • Private Name

    Private Name - 2018-01-19

    Can the Themes options be simplified? Right now is kind of confusing. I copied one of the included themes and modified it but I don't know where is it in case I want to back it up. Also the names in the XItem collection are not helpful, what's a "Favorites Bar"? A small tutorial would help non-techies

     
    • madproton

      madproton - 2018-01-19

      Hi,

      The location of themes depends on the type of installation or if it was configured to be relocated elsewhere using portable.cfg. In any case, the location should be shown in [Help] -> [Program Information] -> [Themes Directory].

      It's a little hard to create a general tutorial for customizing themes because most of the names and files for a theme can be anything. This is the downside of having a theme feature that is too flexible. However, parts of the GUI should be standard as it relates to this program. See https://maxlauncher.sourceforge.io/documentation/kb/12/ for the GUI part names.

      Also, when you customize a theme via the [Customize] button from the [Theme Dialog], the changes should be instantaneous.

      I'm not sure if the above information is sufficient, but let me know if you need more information.

      Thanks.

       
  • madproton

    madproton - 2018-04-30
    • status: open --> closed
    • assigned_to: madproton
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.