mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +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) {
|
||||
|
||||
// Add background and foreground
|
||||
var str = 'background:' + fromHexColor(scheme.background) + ';'
|
||||
+ 'foreground:' + fromHexColor(scheme.foreground) + ';';
|
||||
var str = 'background: ' + fromHexColor(scheme.background) + ';\n'
|
||||
+ 'foreground: ' + fromHexColor(scheme.foreground) + ';';
|
||||
|
||||
// Add color definitions for each palette entry
|
||||
for (var index in scheme.colors)
|
||||
str += 'color' + index + ':' + fromHexColor(scheme.colors[index]) + ';';
|
||||
str += '\ncolor' + index + ': ' + fromHexColor(scheme.colors[index]) + ';';
|
||||
|
||||
return str;
|
||||
|
||||
|
Reference in New Issue
Block a user