From b5d135c2b3a2fc9fc0edc07b5f4408f51a9477ec Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Sun, 9 Aug 2020 12:56:56 -0600 Subject: [PATCH 1/9] Add support for Windows Terminal Why needed: Windows Termimal has a 'settings.json' file that can house color schemes. It requires a certain syntax and its own set of color names. How addressed: Similar to other output types, I generated an output to the browser with syntactically correct color scheme instance for Windows Terminal 'settings.json', with instructions on where to copy/paste it to, and indentation matching the indent level for color schemes in that file. Also updated README.md to reflect addition of Windows Terminal and myself as a contributor. Accomplishes: A copy/paste interface to Windows Terminal settings file. User must still copy and past the color scheme into place, and give it a name, but the rest is syntacially correct. This highlights the need for the ability to "open" a color scheme from Windows Terminal, tweak it, and save it back to the same color scheme or give it a new name. --- README.md | 8 +++++++ index.html | 3 +++ js/main.js | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) diff --git a/README.md b/README.md index 7120d30..709b16e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,10 @@ Save the generated file with `.reg` extension and double click it. * __Terminator:__ Copy lines within the [profiles] section of the generated configuration file to ~/.config/terminator/config file. +* __Windows Terminal:__ + + Copy output lines within the 'schemes' array (between the square braces) of the Windows Terminal settings.json file, and give it your own name. + * __Other terminals:__ Generate one of the supported formats and copy hex values into the configuration file (or tool) of your terminal. @@ -67,6 +71,10 @@ __Victor Hugo Borja__ * http://github.com/vic * http://twitter.com/vborja +__Victor Wheeler__ + +- http://github.com/vwheeler63 + Resources --------- diff --git a/index.html b/index.html index 1750a64..9920ab4 100755 --- a/index.html +++ b/index.html @@ -134,6 +134,9 @@

Advanced

  • terminator config

  • +
  • +

    windows terminal Windows Terminal +

  • diff --git a/js/main.js b/js/main.js index d9c769b..ad4d947 100755 --- a/js/main.js +++ b/js/main.js @@ -891,6 +891,68 @@ _4bit = function() { } }); + var SchemeWindowsTerminalView = Backbone.View.extend({ + + model: scheme, + + initialize: function() { + _.bindAll(this, 'render'); + var that = this; + $('#windows-terminal-button').hover(function() { + that.render(); + }); + $('#windows-terminal-button').focus(function() { + that.render(); + }); + }, + + render: function() { + var that = this; + var lsResult = ''; + var counter = 0; + + lsResult += '// --- ~/.settings.json ---------------------------------------------------------\n'; + lsResult += '// --- Copy the text below including the curly braces {...} and past into ---\n'; + lsResult += '// --- schemes [] array in settings.json of Windows Terminal. ---\n'; + lsResult += '// ------------------------------------------------------------------------------\n'; + lsResult += '// --- generated with 4bit Terminal Color Scheme Designer -----------------------\n'; + lsResult += '// ------------------------------------------------------------------------------\n'; + lsResult += '// --- http://ciembor.github.com/4bit -------------------------------------------\n'; + lsResult += '// --- with Windows Terminal code by Victor Wheeler. ----------------------------\n'; + lsResult += '// ------------------------------------------------------------------------------\n\n'; + lsResult += ' {\n'; + + lsResult += ' "name" : "your_name",\n\n'; + lsResult += ' // --- special colors ---\n\n'; + lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; + lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n\n'; + lsResult += ' // --- standard colors ---\n\n'; + lsResult += ' "black" : "' + that.model.get('colors')['black'] + '",\n'; + lsResult += ' "blue" : "' + that.model.get('colors')['blue'] + '",\n'; + lsResult += ' "cyan" : "' + that.model.get('colors')['cyan'] + '",\n'; + lsResult += ' "green" : "' + that.model.get('colors')['green'] + '",\n'; + lsResult += ' "purple" : "' + that.model.get('colors')['magenta'] + '",\n'; + lsResult += ' "red" : "' + that.model.get('colors')['red'] + '",\n'; + lsResult += ' "white" : "' + that.model.get('colors')['white'] + '",\n'; + lsResult += ' "yellow" : "' + that.model.get('colors')['yellow'] + '",\n'; + lsResult += ' "brightBlack" : "' + that.model.get('colors')['bright_black'] + '",\n'; + lsResult += ' "brightBlue" : "' + that.model.get('colors')['bright_blue'] + '",\n'; + lsResult += ' "brightCyan" : "' + that.model.get('colors')['bright_cyan'] + '",\n'; + lsResult += ' "brightGreen" : "' + that.model.get('colors')['bright_green'] + '",\n'; + lsResult += ' "brightPurple" : "' + that.model.get('colors')['bright_magenta'] + '",\n'; + lsResult += ' "brightRed" : "' + that.model.get('colors')['bright_red'] + '",\n'; + lsResult += ' "brightWhite" : "' + that.model.get('colors')['bright_white'] + '",\n'; + lsResult += ' "brightYellow" : "' + that.model.get('colors')['bright_yellow'] + '"\n'; + lsResult += ' },\n\n'; + lsResult += '// ------------------------------------------------------------------------------\n'; + lsResult += '// --- end of terminal colors section -------------------------------------------\n'; + lsResult += '// ------------------------------------------------------------------------------\n\n'; + + $('#windows-terminal-button').attr('href', 'data:text/plain,' + encodeURIComponent(lsResult)); + } + + }); + var ControlsView = Backbone.View.extend({ el: $('#controls'), @@ -1055,6 +1117,7 @@ _4bit = function() { var schemeXfceTerminalView = new SchemeXfceTerminalView(); var schemePuttyView = new SchemePuttyView(); var schemeTerminatorView = new SchemeTerminatorView(); + var schemeWindowsTerminalView = new SchemeWindowsTerminalView(); var controlsView = new ControlsView(); // basic layout behaviour ///////////////////////////// From 4fc677f7e4539789cdad2ec6714366612001b0cf Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Sun, 9 Aug 2020 13:53:21 -0600 Subject: [PATCH 2/9] Spelling correction in Windows Terminal output header. --- js/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index ad4d947..733266a 100755 --- a/js/main.js +++ b/js/main.js @@ -469,13 +469,13 @@ _4bit = function() { _.each(COLOR_NAMES, function(name) { if (0 !== name.indexOf('bright_')) { palette.push( gnomeColor(colors[name]) ); - } + } }); - + _.each(COLOR_NAMES, function(name) { if (0 === name.indexOf('bright_')) { palette.push( gnomeColor(colors[name]) ); - } + } }); out = '#!/bin/bash \n\n'; @@ -912,7 +912,7 @@ _4bit = function() { var counter = 0; lsResult += '// --- ~/.settings.json ---------------------------------------------------------\n'; - lsResult += '// --- Copy the text below including the curly braces {...} and past into ---\n'; + lsResult += '// --- Copy the text below including the curly braces {...} and paste into ---\n'; lsResult += '// --- schemes [] array in settings.json of Windows Terminal. ---\n'; lsResult += '// ------------------------------------------------------------------------------\n'; lsResult += '// --- generated with 4bit Terminal Color Scheme Designer -----------------------\n'; From fb63bf22f04fbfe7e157e0da398cf606d66702c0 Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Sun, 9 Aug 2020 14:10:23 -0600 Subject: [PATCH 3/9] Add favicon (atom symbol) --- favicon.ico | Bin 0 -> 24838 bytes index.html | 1 + 2 files changed, 1 insertion(+) create mode 100644 favicon.ico diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..5c125de5d897c1ff5692a656485b3216123dcd89 GIT binary patch literal 24838 zcmeI4X^>UL6@VY56)S&I{`6Nu0RscWCdj@GJHx(%?6_-;yKy1n;EEf9f}pr1CW5HA zYt$%U#C=}?jWH&%G@BaHBxsWAoUb3}&6%Ei@4Ii_JRa1`RQ23*yU)_wJ$?H0>6gj0 z${d_I^w5kvTW3xYEc?FvyP3>p$!py@`@T`|dVepIsjbbvR}af%KKy7YuQ%SDC^zmNWPYR^7avI5P-@dKev}UZ^aDAOyci9Nn zwR4qEz~tSvrp|#ACvWzo9`3B;`}^{t18dxaH;?xT7#hmJiKAaI;|O=$yxzXNOHGw~ z^!5pE^SW`av%t_$22LFPsM^l%=PSp!3r`>9w%s+^ZQYnnTQ*Ggd9-1~kj_o$YdW@b ztCkJ(ZGYjusqV5L4{^)R9Gt@gzU1t|?xhE&c^q(|(R#oa*}Sj5c({A$mhrB8*Y@tc zr)K#C{KOp-eHl35ZWJ1&zkmI>9DL%!KJE@_!=W?aH;i?ZDb0O1HPFy6 zcV0Kf)eZ0BHmz9vowF7EA{z*aue9M)iJP&Zd)qYlfJ-c^sS1qY^?>s)!!Ta@x zr@Lz|80r)7<{QVk9Z$}5SDaVtz*Rc?oH5~Wcjoc^eA&EdJ^h@aZ-BvL{K2s_7Cvfr zFL&(R?D&(9OxsS%z_BzI9^Ai^AOF$PUpGk~oO(=OpMc3@Zh&KH1a9>G%%0rC)t@oQ z4d~M`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`Q?az z!WLG4UNP}+#C+NKH+ZG-Q=E>IPp%LuKLx$$8NAOGr(#~P>!EA zDYlpXDR=xM?Xv5(-qp74Cw3LzBeASHSBY`OezkbOyjP!G%WSymju_C$VBl--z + From 3859a00ed4e8a1cca0ea45c0d734157f424f38dd Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Sun, 9 Aug 2020 14:10:56 -0600 Subject: [PATCH 4/9] Fix 'Get Scheme' button to be able to contain string. Why needed: "Get Scheme" string was word-wrapping with "Scheme" appearing partially below the button. How addressed: Widened button from 116px to 126px. Word wrap stopped. --- less/main.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/less/main.less b/less/main.less index cd732ec..3143a50 100644 --- a/less/main.less +++ b/less/main.less @@ -233,7 +233,7 @@ body { } #get-scheme-button { - width: 116px; + width: 126px; border: 1px solid #ccc; span { From 03573b4c10e3ea7d6276d222bab65b50a0b8b832 Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Sun, 9 Aug 2020 14:22:57 -0600 Subject: [PATCH 5/9] Clarify labels in Get Scheme dialog box. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index b235cbe..a1ed282 100755 --- a/index.html +++ b/index.html @@ -136,7 +136,7 @@

    Advanced

    terminator config

  • -

    windows terminal Windows Terminal +

    Windows Terminalsettings.json

  • From 7cf208c4c6fe25cfce642d1fec88210d0433f109 Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Mon, 10 Aug 2020 10:16:59 -0600 Subject: [PATCH 6/9] Improved colon alignment in output. --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 733266a..a8dfcbe 100755 --- a/js/main.js +++ b/js/main.js @@ -922,7 +922,7 @@ _4bit = function() { lsResult += '// ------------------------------------------------------------------------------\n\n'; lsResult += ' {\n'; - lsResult += ' "name" : "your_name",\n\n'; + lsResult += ' "name" : "your_name",\n\n'; lsResult += ' // --- special colors ---\n\n'; lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n\n'; From af042cd2489eb2f16af163324f719354dc5a487d Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Mon, 10 Aug 2020 10:20:31 -0600 Subject: [PATCH 7/9] Neaten output by removing empty lines. --- js/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index a8dfcbe..6c2bd00 100755 --- a/js/main.js +++ b/js/main.js @@ -922,11 +922,11 @@ _4bit = function() { lsResult += '// ------------------------------------------------------------------------------\n\n'; lsResult += ' {\n'; - lsResult += ' "name" : "your_name",\n\n'; - lsResult += ' // --- special colors ---\n\n'; + lsResult += ' "name" : "your_name",\n'; + lsResult += ' // --- special colors ---\n'; lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; - lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n\n'; - lsResult += ' // --- standard colors ---\n\n'; + lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n'; + lsResult += ' // --- standard colors ---\n'; lsResult += ' "black" : "' + that.model.get('colors')['black'] + '",\n'; lsResult += ' "blue" : "' + that.model.get('colors')['blue'] + '",\n'; lsResult += ' "cyan" : "' + that.model.get('colors')['cyan'] + '",\n'; From 1addc8d7f15ce9ca58869c4ee0d6f54fc923e0aa Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Mon, 10 Aug 2020 10:25:35 -0600 Subject: [PATCH 8/9] Adjust leading indent to have TAB = 4 spaces --- js/main.js | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/js/main.js b/js/main.js index 6c2bd00..52c70cf 100755 --- a/js/main.js +++ b/js/main.js @@ -920,30 +920,29 @@ _4bit = function() { lsResult += '// --- http://ciembor.github.com/4bit -------------------------------------------\n'; lsResult += '// --- with Windows Terminal code by Victor Wheeler. ----------------------------\n'; lsResult += '// ------------------------------------------------------------------------------\n\n'; - lsResult += ' {\n'; - - lsResult += ' "name" : "your_name",\n'; - lsResult += ' // --- special colors ---\n'; - lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; - lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n'; - lsResult += ' // --- standard colors ---\n'; - lsResult += ' "black" : "' + that.model.get('colors')['black'] + '",\n'; - lsResult += ' "blue" : "' + that.model.get('colors')['blue'] + '",\n'; - lsResult += ' "cyan" : "' + that.model.get('colors')['cyan'] + '",\n'; - lsResult += ' "green" : "' + that.model.get('colors')['green'] + '",\n'; - lsResult += ' "purple" : "' + that.model.get('colors')['magenta'] + '",\n'; - lsResult += ' "red" : "' + that.model.get('colors')['red'] + '",\n'; - lsResult += ' "white" : "' + that.model.get('colors')['white'] + '",\n'; - lsResult += ' "yellow" : "' + that.model.get('colors')['yellow'] + '",\n'; - lsResult += ' "brightBlack" : "' + that.model.get('colors')['bright_black'] + '",\n'; - lsResult += ' "brightBlue" : "' + that.model.get('colors')['bright_blue'] + '",\n'; - lsResult += ' "brightCyan" : "' + that.model.get('colors')['bright_cyan'] + '",\n'; - lsResult += ' "brightGreen" : "' + that.model.get('colors')['bright_green'] + '",\n'; - lsResult += ' "brightPurple" : "' + that.model.get('colors')['bright_magenta'] + '",\n'; - lsResult += ' "brightRed" : "' + that.model.get('colors')['bright_red'] + '",\n'; - lsResult += ' "brightWhite" : "' + that.model.get('colors')['bright_white'] + '",\n'; - lsResult += ' "brightYellow" : "' + that.model.get('colors')['bright_yellow'] + '"\n'; - lsResult += ' },\n\n'; + lsResult += ' {\n'; + lsResult += ' "name" : "your_name",\n'; + lsResult += ' // --- special colors ---\n'; + lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; + lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n'; + lsResult += ' // --- standard colors ---\n'; + lsResult += ' "black" : "' + that.model.get('colors')['black'] + '",\n'; + lsResult += ' "blue" : "' + that.model.get('colors')['blue'] + '",\n'; + lsResult += ' "cyan" : "' + that.model.get('colors')['cyan'] + '",\n'; + lsResult += ' "green" : "' + that.model.get('colors')['green'] + '",\n'; + lsResult += ' "purple" : "' + that.model.get('colors')['magenta'] + '",\n'; + lsResult += ' "red" : "' + that.model.get('colors')['red'] + '",\n'; + lsResult += ' "white" : "' + that.model.get('colors')['white'] + '",\n'; + lsResult += ' "yellow" : "' + that.model.get('colors')['yellow'] + '",\n'; + lsResult += ' "brightBlack" : "' + that.model.get('colors')['bright_black'] + '",\n'; + lsResult += ' "brightBlue" : "' + that.model.get('colors')['bright_blue'] + '",\n'; + lsResult += ' "brightCyan" : "' + that.model.get('colors')['bright_cyan'] + '",\n'; + lsResult += ' "brightGreen" : "' + that.model.get('colors')['bright_green'] + '",\n'; + lsResult += ' "brightPurple" : "' + that.model.get('colors')['bright_magenta'] + '",\n'; + lsResult += ' "brightRed" : "' + that.model.get('colors')['bright_red'] + '",\n'; + lsResult += ' "brightWhite" : "' + that.model.get('colors')['bright_white'] + '",\n'; + lsResult += ' "brightYellow" : "' + that.model.get('colors')['bright_yellow'] + '"\n'; + lsResult += ' },\n\n'; lsResult += '// ------------------------------------------------------------------------------\n'; lsResult += '// --- end of terminal colors section -------------------------------------------\n'; lsResult += '// ------------------------------------------------------------------------------\n\n'; From db2c1aeacfcc5b7504731afb5e6da452a42bbdc4 Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Mon, 10 Aug 2020 11:25:50 -0600 Subject: [PATCH 9/9] Change color to match sequences at iTerm2-Color-Schemes repo URL: https://github.com/mbadolato/iTerm2-Color-Schemes Note: this also follows the color-wheel sequence. --- js/main.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/js/main.js b/js/main.js index 52c70cf..3d2445b 100755 --- a/js/main.js +++ b/js/main.js @@ -922,26 +922,25 @@ _4bit = function() { lsResult += '// ------------------------------------------------------------------------------\n\n'; lsResult += ' {\n'; lsResult += ' "name" : "your_name",\n'; - lsResult += ' // --- special colors ---\n'; - lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; - lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '",\n'; - lsResult += ' // --- standard colors ---\n'; lsResult += ' "black" : "' + that.model.get('colors')['black'] + '",\n'; - lsResult += ' "blue" : "' + that.model.get('colors')['blue'] + '",\n'; - lsResult += ' "cyan" : "' + that.model.get('colors')['cyan'] + '",\n'; + lsResult += ' "red" : "' + that.model.get('colors')['red'] + '",\n'; lsResult += ' "green" : "' + that.model.get('colors')['green'] + '",\n'; + lsResult += ' "yellow" : "' + that.model.get('colors')['yellow'] + '",\n'; + lsResult += ' "blue" : "' + that.model.get('colors')['blue'] + '",\n'; lsResult += ' "purple" : "' + that.model.get('colors')['magenta'] + '",\n'; - lsResult += ' "red" : "' + that.model.get('colors')['red'] + '",\n'; + lsResult += ' "cyan" : "' + that.model.get('colors')['cyan'] + '",\n'; lsResult += ' "white" : "' + that.model.get('colors')['white'] + '",\n'; - lsResult += ' "yellow" : "' + that.model.get('colors')['yellow'] + '",\n'; lsResult += ' "brightBlack" : "' + that.model.get('colors')['bright_black'] + '",\n'; - lsResult += ' "brightBlue" : "' + that.model.get('colors')['bright_blue'] + '",\n'; - lsResult += ' "brightCyan" : "' + that.model.get('colors')['bright_cyan'] + '",\n'; + lsResult += ' "brightRed" : "' + that.model.get('colors')['bright_red'] + '",\n'; lsResult += ' "brightGreen" : "' + that.model.get('colors')['bright_green'] + '",\n'; + lsResult += ' "brightYellow" : "' + that.model.get('colors')['bright_yellow'] + '",\n'; + lsResult += ' "brightBlue" : "' + that.model.get('colors')['bright_blue'] + '",\n'; lsResult += ' "brightPurple" : "' + that.model.get('colors')['bright_magenta'] + '",\n'; - lsResult += ' "brightRed" : "' + that.model.get('colors')['bright_red'] + '",\n'; + lsResult += ' "brightCyan" : "' + that.model.get('colors')['bright_cyan'] + '",\n'; lsResult += ' "brightWhite" : "' + that.model.get('colors')['bright_white'] + '",\n'; - lsResult += ' "brightYellow" : "' + that.model.get('colors')['bright_yellow'] + '"\n'; + lsResult += ' // --- special colors ---\n'; + lsResult += ' "background" : "' + that.model.get('colors')['background'] + '",\n'; + lsResult += ' "foreground" : "' + that.model.get('colors')['foreground'] + '"\n'; lsResult += ' },\n\n'; lsResult += '// ------------------------------------------------------------------------------\n'; lsResult += '// --- end of terminal colors section -------------------------------------------\n';