improve set_color and theme color documentation

This is meant to make it clear that fish cannot control the terminal
window background color. It also augments the set_color documentation to
describe how it decides which color the terminal can display.

Resolves #2421.
Resolves #2184.
This commit is contained in:
Kurtis Rader
2016-01-04 19:23:03 -08:00
committed by ridiculousfish
parent 68fcb790b0
commit f8ed1d182e
3 changed files with 23 additions and 5 deletions

View File

@@ -312,6 +312,10 @@ body {
height: 12px;
}
.colorpicker_text_notice {
margin: 0px 20px 10px 20px; /* top right bottom left */
}
.colorpicker_text_sample, .colorpicker_text_sample_tight {
font-size: 12pt;
padding: 25px;

View File

@@ -1,5 +1,12 @@
<div>
<!-- ko with: color_picker -->
<div class="colorpicker_text_notice">
The background color in the theme preview box below is for
illustration only. The displayed background color is not part of the
theme and will not be saved. Fish is not able to change the terminal
window background color. See your terminal documentation for how to
set its background color.
</div>
<div class="colorpicker_text_sample" ng-style="{'background-color': terminalBackgroundColor}">
<span style="position: absolute; left: 10px; top: 3px;" data-ng-style="{'color': text_color_for_color(terminalBackgroundColor || 'white')}">{{ selectedColorScheme.name }}</span><br>
<div class="color_picker_background_cells">