mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-630: Include newlines within color scheme strings for readability.
This commit is contained in:
@@ -214,12 +214,12 @@ angular.module('form').factory('ColorScheme', [function defineColorScheme() {
|
|||||||
ColorScheme.toString = function toString(scheme) {
|
ColorScheme.toString = function toString(scheme) {
|
||||||
|
|
||||||
// Add background and foreground
|
// Add background and foreground
|
||||||
var str = 'background:' + fromHexColor(scheme.background) + ';'
|
var str = 'background: ' + fromHexColor(scheme.background) + ';\n'
|
||||||
+ 'foreground:' + fromHexColor(scheme.foreground) + ';';
|
+ 'foreground: ' + fromHexColor(scheme.foreground) + ';';
|
||||||
|
|
||||||
// Add color definitions for each palette entry
|
// Add color definitions for each palette entry
|
||||||
for (var index in scheme.colors)
|
for (var index in scheme.colors)
|
||||||
str += 'color' + index + ':' + fromHexColor(scheme.colors[index]) + ';';
|
str += '\ncolor' + index + ': ' + fromHexColor(scheme.colors[index]) + ';';
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user