Webconfig: Let theme match help and fishshell.com

More consistency is nice.
This commit is contained in:
Fabian Homborg
2020-10-04 17:30:01 +02:00
parent aaf5bfc25f
commit 6418e8ea68
7 changed files with 37 additions and 54 deletions

View File

@@ -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) {

View File

@@ -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;