mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
fish_config: 'Webify' color definitions
The colors defined in `colorutils.js` are specified in fish format, and therefore RGB values lack the leading `#` character and do not fully follow the html/css spec (w3.org/TR/css-color-4/#typedef-hex-color). Web config sends these values as-is to the browser, without first converting to a browser-friendly format. While this (somehow) works for the most part, a few colors get lost along the way and do not display in the customization selector nor in the preview when selected. This behavior was seen in Firefox. To fix this, let's prepend the missing '#' character to all RGB colors defined in `colorutils.js`.
This commit is contained in:
committed by
ridiculousfish
parent
2083acec2e
commit
c2fe319af0
@@ -34,6 +34,8 @@ controllers.controller("colorsController", function($scope, $http) {
|
||||
|
||||
$scope.border_color_for_color = border_color_for_color;
|
||||
|
||||
$scope.interpret_color = interpret_color;
|
||||
|
||||
$scope.getColorArraysArray = function() {
|
||||
var result = null;
|
||||
if ( $scope.selectedColorScheme.colors && $scope.selectedColorScheme.colors.length > 0)
|
||||
@@ -165,7 +167,6 @@ controllers.controller("promptController", function($scope, $http) {
|
||||
$scope.fetchSamplePrompts= function() {
|
||||
$http.get("sample_prompts/").then(function(arg) {
|
||||
$scope.samplePrompts = arg.data;
|
||||
$scope.samplePromptsArrayArray = get_colors_as_nested_array($scope.samplePrompts, 1);
|
||||
|
||||
if ($scope.selectedPrompt == null) {
|
||||
$scope.selectPrompt($scope.samplePrompts[0]);
|
||||
|
||||
Reference in New Issue
Block a user