Latest Posts

Topic: Dark theme

atomikaya
Avatar
Topic Opener
Joined: 2022-12-22, 22:42
Posts: 7
OS: Fedora Linux
Version: 1.1
Ranking
Pry about Widelands
Posted at: 2022-12-23, 00:41

Hi, I'm almost done building a simple dark theme for Widelands (very loosely) based on kaputtnik's minimalistic theme + gtk4 palette. I can send pics if anyone is interested.

I wondered if there was any way to get rid of the heavy outset borders on the buttons? I have seen mentions in the source code of a "flat" button design but I don't know if this is something that can be set from a theme add-on.

Thanks!


Top Quote
atomikaya
Avatar
Topic Opener
Joined: 2022-12-22, 22:42
Posts: 7
OS: Fedora Linux
Version: 1.1
Ranking
Pry about Widelands
Posted at: 2022-12-23, 08:19

In the same line of questions, some of the UI is stored outside of the theme (like the slider and scrollbar arrows). Any chance I might manage to override these buttons with my add-on?

Btw I'm sorry if these are questions more suited to the graphics forum, I just thought this was more about add-on access to things but I can move the topic if necessary.

Edited: 2022-12-23, 08:19

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1747
OS: Ubuntu MATE 22.10
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2022-12-23, 10:39

Hi atomikaya and welcome to the forums face-smile.png

Changing the graphics that are stored outside the theme directory is not currently possible, but allowing theme add-ons to replace these graphics as well is on my to-do-list for release 1.2. So in the next version this will most likely be possible.

Which style to use for a particular button (flat, raised, permpressed, monochrome, etc) and how these effects are achieved is hardcoded in the game. This can unfortunately not be changed by add-ons. I also intend to look into allowing you some more freedom there but I can't promise anything.


Top Quote
atomikaya
Avatar
Topic Opener
Joined: 2022-12-22, 22:42
Posts: 7
OS: Fedora Linux
Version: 1.1
Ranking
Pry about Widelands
Posted at: 2022-12-23, 11:53

Hi, thanks for the info. I guess I'm done then, I'm gonna look into publishing the add-on.

Some screenshots:

Main menu Options window Game loading screen In game windows Module window

Edited: 2022-12-23, 11:56

Top Quote
atomikaya
Avatar
Topic Opener
Joined: 2022-12-22, 22:42
Posts: 7
OS: Fedora Linux
Version: 1.1
Ranking
Pry about Widelands
Posted at: 2022-12-23, 12:11

Ok, it should be available under Simple Dark Theme.

Hope I didn't break stuff! Thanks face-smile.png


Top Quote
atomikaya
Avatar
Topic Opener
Joined: 2022-12-22, 22:42
Posts: 7
OS: Fedora Linux
Version: 1.1
Ranking
Pry about Widelands
Posted at: 2023-01-12, 15:36

A quick update as I had missed a color bug which made the clock and general in-game announcements unreadable.

I uploaded again with and bumped the version to 1.1, hope it was the right way to do this. Thanks!


Top Quote