From 876176fc94f4f32dddd779735b106a38fc24f7ef Mon Sep 17 00:00:00 2001 From: ARifleman <54899319+ARifleman@users.noreply.github.com> Date: Wed, 16 Oct 2019 00:18:18 -0600 Subject: [PATCH] Added 'Nord' color scheme to sample color schemes (#6201) --- share/tools/web_config/js/colorutils.js | 36 ++++++++++++++++++++++++ share/tools/web_config/js/controllers.js | 4 +-- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/js/colorutils.js b/share/tools/web_config/js/colorutils.js index 3ec2d69ed..4eaf3a6f8 100644 --- a/share/tools/web_config/js/colorutils.js +++ b/share/tools/web_config/js/colorutils.js @@ -279,6 +279,42 @@ var TomorrowTheme = { } } +var nord = { + nord0: '2e3440', + nord1: '3b4252', + nord2: '434c5e', + nord3: '4c566a', + nord4: 'd8dee9', + nord5: 'e5e9f0', + nord6: 'eceff4', + nord7: '8fbcbb', + nord8: '88c0d0', + nord9: '81a1c1', + nord10: '5e81ac', + nord11: 'bf616a', + nord12: 'd08770', + nord13: 'ebcb8b', + nord14: 'a3be8c', + nord15: 'b48ead', +}; + +var color_scheme_nord = { + name: "Nord", + colors: dict_values(nord), + + preferred_background: '#' + nord.nord0, + + autosuggestion: nord.nord3, + command: nord.nord9, + comment: nord.nord2, + end: nord.nord8, + error: nord.nord13, + param: nord.nord6, + quote: nord.nord14, + redirection: nord.nord15, + + url: 'http://www.nordtheme.com/' +}; var solarized = { base03: '002b36', base02: '073642', base01: '586e75', base00: '657b83', base0: '839496', base1: '93a1a1', base2: 'eee8d5', base3: 'fdf6e3', yellow: 'b58900', orange: 'cb4b16', red: 'dc322f', magenta: 'd33682', violet: '6c71c4', blue: '268bd2', cyan: '2aa198', green: '859900' diff --git a/share/tools/web_config/js/controllers.js b/share/tools/web_config/js/controllers.js index 5a69affa9..f1efb7d39 100644 --- a/share/tools/web_config/js/controllers.js +++ b/share/tools/web_config/js/controllers.js @@ -74,10 +74,10 @@ controllers.controller("colorsController", function($scope, $http) { $scope.noteThemeChanged(); } - $scope.sampleTerminalBackgroundColors = ['white', '#' + solarized.base3, '#300', '#003', '#' + solarized.base03, '#232323', 'black']; + $scope.sampleTerminalBackgroundColors = ['white', '#' + solarized.base3, '#300', '#003', '#' + solarized.base03, '#232323', '#'+nord.nord0, 'black']; /* Array of FishColorSchemes */ - $scope.colorSchemes = [color_scheme_fish_default, color_scheme_solarized_light, color_scheme_solarized_dark, color_scheme_tomorrow, color_scheme_tomorrow_night, color_scheme_tomorrow_night_bright]; + $scope.colorSchemes = [color_scheme_fish_default, color_scheme_solarized_light, color_scheme_solarized_dark, color_scheme_tomorrow, color_scheme_tomorrow_night, color_scheme_tomorrow_night_bright, color_scheme_nord]; for (var i=0; i < additional_color_schemes.length; i++) $scope.colorSchemes.push(additional_color_schemes[i])