Dark theme for 2.5.1 (or above?)

Post about your customizations to share with others.

Moderators: Contributor, Developer

Post Reply
Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Dec 05, 2017 5:59 am

Hi there,

I tried to make a darker theme for MantisBT 2.5.1. Unfortunately it did not go out very well. I still want to post my results here:

--- EDIT
I deleted the CSS code in this post and attached a ZIP with CSS files in the other post reply. Have a nice day! :)
--- EDIT

And ask: are there any skins / themes for MantisBT 2.5.1 out there? Or are there any possibilities to skin it in an easy way instead of Chrome + "Ctrl+Shift+C" + hovering over the elements to get the class name + overwriting that class ??


FYI: I already searched this forum many times and the web but I could only find some kind of themes for MantisBT 1.3 or so. I appreciate every help! :)


Edit:
I managed to write a plugin, which might theem Mantis darker now. There might still be bugs:

https://github.com/Tagirijus/MantisBTDarkTheme
Last edited by Tagirijus on Dec 30, 2017 6:17 pm, edited 2 times in total.

Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Re: Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Dec 05, 2017 12:31 pm

Ok, I managed to tweak the existing css files a bit and added my own improved default.css - I attached all files for those who are also seeking for a dark theme of mantis bug tracker. I am no professional webdesigner! ;)

Oh and of course: backup the original files !!!
Attachments
mantisBT_2-5-1__dark-theme.zip
(134.8 KiB) Downloaded 124 times

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: Dark theme for 2.5.1 (or above?)

Post by rkarmann » Dec 14, 2017 4:11 am

Hi there,

Did you consider to write a plugin ? Using JQuery and custom CSS stylesheet for example ? :D
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Re: Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Dec 14, 2017 4:23 am

No, I did not even know that you could achieve this theming with plugins. MOreover I unfortunately would totally not know how to do this at the moment. Thus I had to spend more time here, while I already achieved my goal for me at least. ;)

Maybe I'll check the thing with plugins later, thanks for the idea.

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: Dark theme for 2.5.1 (or above?)

Post by rkarmann » Dec 14, 2017 4:37 am

In fact, I'm thinking about writing a little UI theme plugin.

So, if you ever get time to achieve this, your help might be welcome. Let me know if you go further in the development of such a UI theme. :P
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Re: Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Dec 14, 2017 7:23 am

I'll probably update this thread then, of course! :)

Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Re: Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Dec 30, 2017 6:18 pm

As in the updated starting post: I managed to write a plugin. You can get it here:

https://github.com/Tagirijus/MantisBTDarkTheme

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: Dark theme for 2.5.1 (or above?)

Post by rkarmann » Dec 31, 2017 9:59 am

Wow, excellent work dude !!! It's really nice this way. I'm wondering if somehow this could be integreated feature that allows user to personnalze UI moreover...

:P
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

RedSpider
Posts: 36
Joined: Jan 30, 2015 2:47 pm

Re: Dark theme for 2.5.1 (or above?)

Post by RedSpider » Jan 30, 2018 6:21 am

is there a screenshot of the dark theme? :)

Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Re: Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Jan 30, 2018 6:33 am

I just added a screenshot on the github page. Here it is:

Image

Marcus-W
Posts: 2
Joined: Jul 31, 2018 3:37 am

Re: Dark theme for 2.5.1 (or above?)

Post by Marcus-W » Jul 31, 2018 3:55 am

Hi Mate,

this is actually pretty great as it basically allows to create an own theme without changing the default.css

Everything works just great, but the plugin won't load on every page. E.G. If I use the search bar, the result page doesn't load the theme. It's not the only page that doesn't load the theme though. Any workaround, alternative or fix?
Attachments
sdsd.jpg
sdsd.jpg (297.58 KiB) Viewed 361 times

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: Dark theme for 2.5.1 (or above?)

Post by rkarmann » Jul 31, 2018 2:18 pm

Hey,

Actually, I think it might happen because not all the Events are called on every pages.

In MantisBTDarkTheme.php

Code: Select all

  function hooks() {
    return array(
        'EVENT_LAYOUT_RESOURCES' => 'add_css'
    );
  }
This is the event that is triggered to add the CSS link. Maybe that's a good start, and you should take a look at the Mantis Documentation / Plugins / Event System

Switching the 'EVENT_LAYOUT_RESOURCES' with some Core Events like 'EVENT_CORE_READY' might be an intersting tweak...
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

Tagirijus
Posts: 17
Joined: Dec 05, 2017 5:19 am
Contact:

Re: Dark theme for 2.5.1 (or above?)

Post by Tagirijus » Jul 31, 2018 3:35 pm

I did not look into this and at the moment I do not have the time for this unfortunately, sorry. Pull request are weclcome though, if somebody else might want to look into this. ;)

Marcus-W
Posts: 2
Joined: Jul 31, 2018 3:37 am

Re: Dark theme for 2.5.1 (or above?)

Post by Marcus-W » Aug 10, 2018 9:44 am

rkarmann wrote:
Jul 31, 2018 2:18 pm
This is the event that is triggered to add the CSS link. Maybe that's a good start, and you should take a look at the Mantis Documentation / Plugins / Event System

Switching the 'EVENT_LAYOUT_RESOURCES' with some Core Events like 'EVENT_CORE_READY' might be an intersting tweak...
Hey, thanks for the reply, I tried to simply swap those two but it basically made it worse, should look more into the documentation you provided.

I skipped working on it since I posted the error and I'm on vacation for the next 2 weeks, but I'm still trying to fix it. Any idea is welcome.

Post Reply