Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Tagirijus/MantisBTDarkTheme
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: polnetwork/MantisBTModernTheme
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 8 commits
  • 1,217 files changed
  • 1 contributor

Commits on Oct 3, 2018

  1. Initial release

    polnetwork committed Oct 3, 2018
    Copy the full SHA
    b5476ca View commit details
  2. Correct README.md

    polnetwork committed Oct 3, 2018
    Copy the full SHA
    29025aa View commit details
  3. Add IBM Plex fonts.

    Update README.md & Screenshot.
    polnetwork committed Oct 3, 2018
    Copy the full SHA
    869dada View commit details
  4. Update Screenshot.

    polnetwork committed Oct 3, 2018
    Copy the full SHA
    1fda2cb View commit details
  5. Update Screenshot.

    polnetwork committed Oct 3, 2018
    Copy the full SHA
    51d1cd7 View commit details
  6. Minor CSS adjustments.

    polnetwork committed Oct 3, 2018
    Copy the full SHA
    7e0438b View commit details
  7. Update README.

    polnetwork committed Oct 3, 2018
    Copy the full SHA
    1c3acc6 View commit details

Commits on Oct 4, 2018

  1. CSS adjustments.

    polnetwork committed Oct 4, 2018
    Copy the full SHA
    a1a3f41 View commit details
Showing 1,217 changed files with 8,889 additions and 352 deletions.
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

29 changes: 0 additions & 29 deletions MantisBTDarkTheme.php

This file was deleted.

31 changes: 31 additions & 0 deletions MantisBTModernTheme.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

class MantisBTModernThemePlugin extends MantisPlugin {

function register() {
$this->name = 'MantisBT Modern Theme';
$this->description = 'A clean theme for MantisBT.';

$this->version = '1.0.1';
$this->requires = array(
'MantisCore' => '2.0.0',
);

$this->author = 'Pol Maresma';
$this->contact = 'pol@polnetwork.com';
$this->url = 'http://www.polnetwork.com';
}

function hooks() {
return array(
'EVENT_LAYOUT_RESOURCES' => 'add_css'
);
}

function add_css($p_event) {
echo '<link rel="stylesheet" type="text/css" href="' . plugin_file('ModernTheme.css') . '" />' . "\n";
echo '<link rel="stylesheet" type="text/css" href="' . plugin_file('fonts/css/ibm-plex.min.css') . '" />' . "\n";

}

}
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# Mantis Bugtracker Dark Theme
# Mantis Bugtracker Modern Theme

![MantisBTDarkTheme Screenshot](files/MantisBTDarkTheme_Screenshot.png)
![MantisBTModernTheme Screenshot](files/MantisBTModernTheme_Screenshot_2.png)

## About

I wanted a dark theme for MantisBT. While it's not enough to just add a `default.css` into the `config_inc.php` variable *$g_css_include_file*, I tried to write a plugin, which replaces the needed CSS classes. Maybe there are still some ugly colors or things - I'm no pro here. (-;
I wanted a modern & clean theme for MantisBT.
Based on https://github.com/Tagirijus/MantisBTDarkTheme

## Installation

Upload the whole folder into your `plugins/` folder in the mantis installation so that you e.g. have `MANTIS_INSTALLATION/plugins/MantisBTDarkTheme/MantisBTDarkTheme.php`. After that the plugin should show up on the `manage_plugin_page.php` page in the mantis settings. There you can simply install it to activate it.
Upload the whole folder into your `plugins/` folder in the mantis installation so that you e.g. have `MANTIS_INSTALLATION/plugins/MantisBTModernTheme/MantisBTModernTheme.php`. After that the plugin should show up on the `manage_plugin_page.php` page in the mantis settings. There you can simply install it to activate it.

## Your colors
I recommend you to set this colors inside your config/config_inc.php file

I did not test it, but in theory you should even be able to *skin* it all with your own colors. The file `DarkTheme.sass` has some variables, which declare how the different shades look like. Mainly there are *tagi_*, *bg_* and *txt_* variables with different shades. *tagi_* is my corporate color, *bg_* variables are for the background colors and *txt_* variables are for text colors. Just test to chose your own color shadings and it won't only be a dark theme anymore! Oh, don't forget to compile the SASS into CSS after you changed the color-variables.

## Changelog

You can view the changelog [here: CHANGELOG.md](CHANGELOG.md).
```php
$g_status_colors = array( 'new' => '#ffa0a0', # red,
'feedback' => '#ff50a8', # purple
'acknowledged' => '#ffd850', # orange
'confirmed' => '#ffffb0', # yellow
'assigned' => '#c8c8ff', # blue
'resolved' => '#cceedd', # buish-green
'closed' => '#e8e8e8'); # light gray
```
1 change: 0 additions & 1 deletion files/DarkTheme.css

This file was deleted.

Loading