Skip to content

Commit

Permalink
WIP of a Darcula theme
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopelegrini committed Sep 17, 2020
1 parent 0f2b4d0 commit 2b0f414
Show file tree
Hide file tree
Showing 8 changed files with 387 additions and 150 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules/
.vagrant/
.sass-cache/
_site/
dist/
dist/
package-lock.json
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,19 @@ module.exports = function (grunt) {
dest: 'images/'
}]
}
},
watch: {
styles: {
files: ['**/*.less'],
tasks: ['less', 'cssmin'],
options: {
spawn: false,
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', ['clean', 'less', 'imageEmbed', 'cssmin']);
};
17 changes: 12 additions & 5 deletions less/dark.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
@import "style";

/* Dark */
@color-primary: #282A36;
@color-bg: #44475A;
@color-primary: #27292A;
@color-bg: #3C3F41;
@color-text: lighten(@color-bg, 50%);
@color-link: #f8f8f2;
@color-link: @color-text;
@color-link-hover: #FFFFFF;
@color-grey: @color-text;
@color-green: #50fa7b;
@color-yellow: #ffb86c;
@color-red: #FF5555;
@color-white: #44475A;
@color-white: #45494A;
@color-black: @color-primary;
@color-footer-bg: @color-primary;
@color-footer-bg: @color-primary;

@color-accent-light: #1E1E1E;

@color-console-text: #FFFFFF;

@internal-table-borde-color: @color-accent-light;
1 change: 1 addition & 0 deletions less/functions.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@data-uri: data-uri("image/svg+xml;charset=UTF-8", '@{url-new}');
@new-uri: replace("@{data-uri}", "@{encoded-default}", "@{encoded-white}");
background-image: e(@new-uri);
content: url('data:image/gif;base64,R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.icon(@size) { // outer mixin
Expand Down
202 changes: 146 additions & 56 deletions less/images.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@

/* Src */

[src$='blue.png'] {
.icon-img('../images/ic_check_circle_black.svg', @color-green);
}

[src$='red.png'] {
.icon-img('../images/ic_error_black.svg', @color-red);
}

[src$='yellow.png'] {
.icon-img('../images/ic_warning_black.svg', @color-yellow);
}

[src$='grey.png'], [src$='aborted.png'], [src$='nobuilt.png'], [src$='disabled.png'] {
.icon-img('../images/ic_remove_circle_black.svg', @color-grey);
}

.icon-health-80plus {
.icon-img('../images/weather-sunny.svg', @color-grey);
}
Expand All @@ -39,38 +23,158 @@
.icon-img('../images/weather-pouring.svg', @color-grey);
}

.icon-blue-anime {
.icon-img('../images/ic_autorenew_black.svg', @color-green);
.icon-sm,
.icon-md,
.icon-lg,
.icon32x32,
.icon-xlg {
background-size: 100% 100% !important;
}

#projectstatus,
#buildHistory,
#main-panel {
.build-icon,
.build-caption,
.job-status-blue,
.job-status-red,
.job-status-grey,
.job-status-yellow,
.job-status-nobuilt,
.job-status-aborted,
.job-status-disabled,
.job-status-blue-anime,
.job-status-red-anime,
.job-status-grey-anime,
.job-status-yellow-anime,
.job-status-nobuilt-anime {
.icon-blue,
.icon-red,
.icon-grey,
.icon-yellow,
.icon-nobuilt,
.icon-aborted,
.icon-disabled,
.icon-blue-anime,
.icon-red-anime,
.icon-grey-anime,
.icon-yellow-anime,
.icon-nobuilt-anime {
content: url('data:image/gif;base64,R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
border-radius: 50%;

&.icon-sm {
margin-left: 2px;
border: 6px solid;
width: 13px !important;
height: 13px !important;
}

&.icon-md {
margin-left: 2px;
border: 9px solid;
width: 18px !important;
height: 18px !important;
}

&.icon-lg {
margin-left: 4px;
border: 11px solid;
width: 22px !important;
height: 22px !important;
}

&.icon-xlg {
border: 18px solid;
width: 36px!important;
height: 36px!important;
margin-bottom: 2px;
}
}

.icon-blue {
border-color: @color-green !important;
&-anime {
border-top-color: @color-green !important;
}
}

.icon-red {
border-color: @color-red !important;
&-anime {
border-top-color: @color-red !important;
}
}

.icon-grey,
.icon-nobuilt,
.icon-disabled {
border-color: @color-grey !important;
&-anime {
border-top-color: @color-black !important;
}
}

.icon-yellow {
border-color: @color-yellow !important;
&-anime {
border-top-color: @color-yellow !important;
}
}

.icon-blue-anime,
.icon-red-anime,
.icon-grey-anime,
.icon-yellow-anime,
.icon-nobuilt-anime {
animation: spin 1s linear infinite;
&.icon-sm {
border: 3px solid @color-grey;
}
&.icon-md,
&.icon-lg {
border: 4px solid @color-grey;
}
&.icon-xlg {
border: 5px solid @color-grey;
margin-right: 5px;
}
}
}
}

.icon-red-anime {
.icon-img('../images/ic_autorenew_black.svg', @color-red);
@keyframes spin {
100%{
transform: rotate(360deg);
}
}

.icon-grey-anime, .icon-nobuilt-anime {
.icon-img('../images/ic_autorenew_black.svg', @color-grey);
[src$='/shelve-project-icon.png'] {
.icon(@size-md);
.icon-img('../images/package-variant.svg', @color-grey);
}

.icon-yellow-anime {
.icon-img('../images/ic_autorenew_black.svg', @color-yellow);
.icon-clock,
.icon-clock-anime {
.icon-img('../images/ic_play_circle_outline_black.svg', @color-grey);
}

.icon-blue-anime,
.icon-red-anime,
.icon-grey-anime,
.icon-yellow-anime,
.icon-nobuilt-anime {
-webkit-animation: rotating 2s linear infinite;
animation: rotating 2s linear infinite;
.icon-clock-anime {
animation: pulse 1s infinite;
}

[src$='/shelve-project-icon.png'] {
.icon(@size-md);
.icon-img('../images/package-variant.svg', @color-grey);
}
@keyframes pulse {
0% {
transform: scale(0.8);
}

.icon-clock {
.icon-img('../images/ic_play_circle_outline_black.svg', @color-grey);
70% {
transform: scale(1);
}

100% {
transform: scale(0.8);
}
}

.icon-new-package {
Expand Down Expand Up @@ -189,6 +293,10 @@
.icon-img('../images/stop.svg', @color-grey);
}

.icon-fav-inactive {
background-image: url("data:image/svg+xml;charset=utf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NjkyQzYzLjQ5NCwwLjU5Nyw2NC4wODQsMS4yMjUsNjQuMzk1LDEuOTY5TDY0LjM5NSwxLjk2OXogTTc0Ljk2Nyw0My4wMjNMNjEuNDQxLDExLjM1MSBMNDcuOTE0LDQzLjAyM2wtMC4wMDQtMC4wMDFjLTAuNDQ4LDEuMDUxLTEuNDQ3LDEuODI2LTIuNjY1LDEuOTMybC0zNC4zMDYsMy4wNzhsMjUuODE5LDIyLjU0NWMwLjk0OSwwLjc0LDEuNDM4LDEuOTg4LDEuMTUyLDMuMjQgbC03LjY3NCwzMy41NzhsMjkuNTA2LTE3LjY0MWMwLjk4Ni0wLjYxNywyLjI3NC0wLjY3MiwzLjM0Mi0wLjAzM2wyOS41NjMsMTcuNjc0bC03LjY3My0zMy41NzhsMC4wMDMtMC4wMDIgYy0wLjI1Mi0xLjEwOSwwLjA5Ni0yLjMxOCwxLjAxMi0zLjExOWwyNS45NTUtMjIuNjY0TDc3LjgxNSw0NC45N0M3Ni42MDcsNDQuOTMyLDc1LjQ3Miw0NC4yMDgsNzQuOTY3LDQzLjAyM0w3NC45NjcsNDMuMDIzeiIvPjwvZz48L3N2Zz4=") !important;
}

[src$='/atom.gif'] {
.icon(@size-md);
.icon-img('../images/rss-box.svg', @color-yellow);
Expand Down Expand Up @@ -234,22 +342,4 @@ h1 > [src$='diskusage48.png'] {
[src$='git-32x32.png'] {
.icon-img('../images/git.svg', @color-grey);
.icon(@size-md);
}

/* Size */

.icon-sm {
.icon(@size-sm);
}

.icon-md {
.icon(@size-md);
}

.icon-lg, .icon32x32 {
.icon(@size-lg);
}

.icon-xlg {
.icon(@size-xl);
}
}
Loading

0 comments on commit 2b0f414

Please sign in to comment.