mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 11:51:15 -03:00
Webconfig: Let theme match help and fishshell.com
More consistency is nice.
This commit is contained in:
@@ -117,7 +117,7 @@ function border_color_for_color(color_str) {
|
||||
|
||||
/* Use this function to make a color that contrasts well with the given color */
|
||||
function text_color_for_color(color_str) {
|
||||
var adjust = .5
|
||||
var adjust = .7
|
||||
function compute_constrast(lightness){
|
||||
var new_lightness = lightness + adjust
|
||||
if (new_lightness > 1.0 || new_lightness < 0.0) {
|
||||
|
||||
@@ -86,7 +86,7 @@ controllers.controller("colorsController", function($scope, $http) {
|
||||
|
||||
$scope.getCurrentTheme = function() {
|
||||
$http.get("colors/").then(function(arg) {
|
||||
var currentScheme = { "name": "Current", "colors":[], "preferred_background": "" };
|
||||
var currentScheme = { "name": "Current", "colors":[], "preferred_background": "black" };
|
||||
var data = arg.data
|
||||
for (var i in data) {
|
||||
currentScheme[data[i].name] = data[i].color;
|
||||
|
||||
Reference in New Issue
Block a user