Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

header colors #39

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ module.exports = function (grunt) {
var pkg = grunt.file.readJSON('package.json');

var lessFiles = {
"dist/neo-light.css": "less/style.less",
"dist/neo-light.css":"less/style.less",
"dist/red.css": "less/red.less",
"dist/pink.css": "less/pink.less",
"dist/purple.css": "less/purple.less",
"dist/indigo.css": "less/indigo.less",
"dist/blue.css": "less/style.less",
"dist/cyan.css": "less/light-blue.less",
"dist/green.css": "less/green.less",
"dist/lime.css": "less/lime.less",
"dist/yellow.css": "less/yellow.less",
"dist/orange.css": "less/orange.less",
"dist/brown.css": "less/brown.less",
"dist/blue-grey.css": "less/blue-grey.less",

};

grunt.initConfig({
Expand Down
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ with modern versions of Jenkins.

## Screenshots

![Start page](img/screenshot1.png)
![Job page](img/screenshot2.png)

![Start page](img/screenshot1.png)![Job page](img/screenshot2.png)![Job page](img/greenscreen.png)![Job page](img/blue-greyscreen.png)![Job page](img/pinkscreen.png)![Job page](img/purplescreen.png)

## Installation

Expand All @@ -32,25 +30,34 @@ an older version, for example `/v0.2.0/`.

### Using this GitHub page


1. Install [Jenkins Simple Theme Plugin][simple]

2. Click `Manage Jenkins`

3. Click `Configure System` and scroll down to `Theme`

4. Specify the URL for `https://tobix.github.io/jenkins-neo2-theme/dist/neo-light.css`.
4. Choose your color for the header:

![palette](img/palette.svg)

5. Replace {{your-color-name}} in the URL by the chosen color: `https://tobix.github.io/jenkins-neo2-theme/dist/{{your-color-name}.css`.


5. Click `Save`
>for example `https://tobix.github.io/jenkins-neo2-theme/dist/blue.css`

6. Click `Save`


### Using your Jenkins Hosting

1. Copy the file
`https://tobix.github.io/jenkins-neo2-theme/dist/neo-light.css` to the
directory `userContent` in your `JENKINS_HOME`
1. Follow the step 1 and 2 of the previous method

2. Download the generated URL

2. Follow the steps of the previous method and use `/userContent/neo-light.css`
as the URL.
3. Upload the downloaded file to your web server

4. Follow the steps 3 to 7 of the previous method using your uploaded file as URL in step 6


## Development
Expand All @@ -62,9 +69,11 @@ installed, you can build everything with:
yarn test
```

This will generate the following file:
This will generate the following files, one for each {{color}}:

- dist/{{color}}.css

- dist/neo-light.css
for example `dist/blue.css`

## Compatibility

Expand Down
Binary file added img/blue-greyscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/greenscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions img/orange.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #EF6C00;
53 changes: 53 additions & 0 deletions img/palette.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/pinkscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/purplescreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions less/blue-grey.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #607d8c;
3 changes: 3 additions & 0 deletions less/brown.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #77655e;
3 changes: 3 additions & 0 deletions less/cyan.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #009fa2;
3 changes: 3 additions & 0 deletions less/green.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #52a13a;
3 changes: 3 additions & 0 deletions less/indigo.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #5341b9;
3 changes: 3 additions & 0 deletions less/light-blue.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #0097ef;
3 changes: 3 additions & 0 deletions less/light-green.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #689F38;
3 changes: 3 additions & 0 deletions less/lime.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #afb513;
3 changes: 3 additions & 0 deletions less/orange.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #fb5c00;
3 changes: 3 additions & 0 deletions less/pink.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #ec1561;
3 changes: 3 additions & 0 deletions less/purple.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #9d1cb2;
3 changes: 3 additions & 0 deletions less/red.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #F44336;
3 changes: 3 additions & 0 deletions less/yellow.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'style';

@color-primary: #fdc102;