Skip to content

Commit

Permalink
Add possibility for themes to change text color in header (#12204)
Browse files Browse the repository at this point in the history
* fixes #12201 add possibility to change text color in header

* fix screenshot

* fix typo in changelog
  • Loading branch information
tsteur authored and mattab committed Nov 19, 2017
1 parent 23249e9 commit 80214a8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This is the Developer Changelog for Piwik platform developers. All changes in ou

The Product Changelog at **[piwik.org/changelog](https://piwik.org/changelog)** lets you see more details about any Piwik release, such as the list of new guides and FAQs, security fixes, and links to all closed issues.

## Piwik 3.2.1

### New APIs
* Themes can now customize the header text color using `@theme-color-header-text`

## Piwik 3.2.0

### New Segments
Expand Down
2 changes: 2 additions & 0 deletions plugins/CoreHome/stylesheets/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ nav {
}

ul a {
color: @theme-color-header-text !important;

&:hover {
text-decoration: none;
}
Expand Down
1 change: 1 addition & 0 deletions plugins/ExampleTheme/stylesheets/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@theme-color-brand: #5793d4;
@theme-color-background-base: #d9e0e3;
@theme-color-header-background: #0091ea;
@theme-color-header-text: #0d0d0d;

@theme-color-widget-title-background: #80d8ff;
@theme-color-widget-title-text: #01579b;
Expand Down
1 change: 1 addition & 0 deletions plugins/Morpheus/stylesheets/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@theme-color-headline-alternative: #4E4E4E;

@theme-color-header-background: #37474f;
@theme-color-header-text: @color-white;

@theme-color-menu-contrast-text: @theme-color-text;
@theme-color-menu-contrast-textSelected: @theme-color-menu-contrast-text;
Expand Down
4 changes: 2 additions & 2 deletions tests/UI/expected-screenshots/Theme_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 80214a8

Please sign in to comment.