| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 6 |
<title>Theme Editor</title> |
| 7 |
<META http-equiv="Content-Style-Type" content="text/css"> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css"> |
| 9 |
</head> |
| 10 |
|
| 11 |
<body> |
| 12 |
<h1>Theme Editor</h1> |
| 13 |
|
| 14 |
Theme is a framework that handles background image, text color, or both at once.<br> |
| 15 |
Theme Editor is able to edit the theme.<br> |
| 16 |
Multiple tabs are for settings.<br> |
| 17 |
The change is reflected in the running Tera Term to push [OK] button, |
| 18 |
and The change discarded to [Cancel] button. |
| 19 |
|
| 20 |
<dl> |
| 21 |
<dt><a href="#preview">preview/file tab</a></dt> |
| 22 |
<dd>Temporary theme settings(preview), loading and saveing theme files.</dd> |
| 23 |
<dt><a href="#bg">Background tab</a></dt> |
| 24 |
<dd>BG(Backgroud) related settings.</dd> |
| 25 |
<dt><a href="#bg_alpha">Background alpha tab</a></dt> |
| 26 |
<dd>Transparency of the background image and text background color.</dd> |
| 27 |
<dt><a href="#color">color tab</a></dt> |
| 28 |
<dd>Settings related to the text color.</dd> |
| 29 |
</dl> |
| 30 |
|
| 31 |
<a href="../setup/theme.html">About theme file</a> |
| 32 |
|
| 33 |
<hr> |
| 34 |
|
| 35 |
<h2>TODO</h2> |
| 36 |
<ul> |
| 37 |
<li>Adding BGSPIPath (Specify Susie Plugin folder to load images) setting GUI. |
| 38 |
|
| 39 |
</ul> |
| 40 |
|
| 41 |
<hr> |
| 42 |
|
| 43 |
<h2 id="preview">preview/file tab</h2> |
| 44 |
|
| 45 |
preview<br> |
| 46 |
Temporarily set (preview), undo a theme. |
| 47 |
|
| 48 |
<dl> |
| 49 |
<dt>[preview]</dt> |
| 50 |
<dd>Temporarily set (preview) theme.</dd> |
| 51 |
<dt>[undo]</dt> |
| 52 |
<dd>Undo changed theme before opening the dialog</dd> |
| 53 |
</dl> |
| 54 |
|
| 55 |
file<br> |
| 56 |
Load a theme from a theme file and save theme. |
| 57 |
|
| 58 |
<dl> |
| 59 |
<dt>[load]</dt> |
| 60 |
<dd>Load theme file.</dd> |
| 61 |
<dt>[save]</dt> |
| 62 |
<dd> |
| 63 |
Export theme to a file.<br> |
| 64 |
Export a BG theme, a Color theme, or both. |
| 65 |
</dd> |
| 66 |
</dl> |
| 67 |
|
| 68 |
<hr> |
| 69 |
|
| 70 |
<h2 id="bg">Background tab(Background theme)</h2> |
| 71 |
|
| 72 |
<h3>background</h3> |
| 73 |
|
| 74 |
Background images are merged from the bottom up.<br> |
| 75 |
See <a href="#bg_overview">Overview of background</a>. |
| 76 |
|
| 77 |
<dl> |
| 78 |
<dt>Simple color plane</dt> |
| 79 |
<dd> |
| 80 |
Alphablend with a single color.<br> |
| 81 |
For example, if you want to slightly darker the blended image background image and desktop wallpaper, Alphablend black with half value(128). |
| 82 |
<dl> |
| 83 |
<dt>Color</dt> |
| 84 |
<dd>Plane color</dd> |
| 85 |
|
| 86 |
<dt>alpha</dt> |
| 87 |
<dd>Alpha blend value</dd> |
| 88 |
</dl> |
| 89 |
</dd> |
| 90 |
|
| 91 |
<dt>Background Image</dt> |
| 92 |
<dd> |
| 93 |
Background image.<br> |
| 94 |
Some image files support per-pixel alpha values. |
| 95 |
<dl> |
| 96 |
<dt>Image file name</dt> |
| 97 |
<dd> |
| 98 |
bmp, png, gif, jpg etc<br> |
| 99 |
32-bit bmp and transparent png has 8-bit alpha channel.<br> |
| 100 |
Transparent gif file treat one color as transparent. |
| 101 |
</dd> |
| 102 |
|
| 103 |
<dt>Pattern</dt> |
| 104 |
<dd> |
| 105 |
How to draw background images. |
| 106 |
<ul> |
| 107 |
<li>stretch</li> |
| 108 |
<li>tile</li> |
| 109 |
<li>center</li> |
| 110 |
<li>fit_withh</li> |
| 111 |
<li>fit_height</li> |
| 112 |
<li>autofit</li> |
| 113 |
<li>autofill</li> |
| 114 |
</ul> |
| 115 |
TODO check details and write them. |
| 116 |
</dd> |
| 117 |
|
| 118 |
<dt>Color</dt> |
| 119 |
<dd> |
| 120 |
If there are areas where the background image is not drawn, |
| 121 |
the area will be painted with this color.<br> |
| 122 |
If there are transparent areas in the image and the Windows wallpaper image is not blended, |
| 123 |
the area will be patinted with this color too. |
| 124 |
</dd> |
| 125 |
|
| 126 |
<dt>alpha</dt> |
| 127 |
<dd> |
| 128 |
Alpha blend value with desktop wallpaper image<br> |
| 129 |
Setting values from transparent to opaque<br> |
| 130 |
</dd> |
| 131 |
</dl> |
| 132 |
</dd> |
| 133 |
|
| 134 |
<dt>desktop wallpaper image</dt> |
| 135 |
<dd> |
| 136 |
Windows Wallpaper Images |
| 137 |
</dd> |
| 138 |
|
| 139 |
</dl> |
| 140 |
|
| 141 |
<hr> |
| 142 |
|
| 143 |
<h2 id="bg_alpha">Transparency for background image and text background color</h3> |
| 144 |
|
| 145 |
<dl> |
| 146 |
<dt>Transparency of normal text background color</dt> |
| 147 |
<dd> |
| 148 |
Transparency of background image and normal text background color<br> |
| 149 |
Setting values from transparent to opaque<br> |
| 150 |
(1) in the image |
| 151 |
</dd> |
| 152 |
<dt>transparency of reverse text background color</dt> |
| 153 |
<dd> |
| 154 |
Transparency of background image and reverse text background color<br> |
| 155 |
Setting values from transparent to opaque<br> |
| 156 |
(2) in the image |
| 157 |
</dd> |
| 158 |
<dt>Transparency of other text background colors</dt> |
| 159 |
<dd> |
| 160 |
transparency of Background image and other text background colors<br> |
| 161 |
Setting values from transparent to opaque<br> |
| 162 |
(3) in the image |
| 163 |
</dd> |
| 164 |
<dt> |
| 165 |
</dl> |
| 166 |
<img src="setup-additional-visual-theme-alpha.png"><br> |
| 167 |
When 1 and 3 are transparent, It will be the same as Tera Term 4. |
| 168 |
|
| 169 |
<hr> |
| 170 |
|
| 171 |
<h2 id="color">color tab(color theme)</h2> |
| 172 |
|
| 173 |
<p> |
| 174 |
The color theme sets colors overriding default colors.<br> |
| 175 |
<a href="#default_color">Default colors</a> are set in TERATERM.INI.<br> |
| 176 |
Colors not set in the color theme ini file will be the default colors. |
| 177 |
|
| 178 |
<p> |
| 179 |
On this tab, you can configure following settings<br> |
| 180 |
<ul> |
| 181 |
<li>Color settings |
| 182 |
<li>Restore default colors |
| 183 |
</ul> |
| 184 |
|
| 185 |
<p> |
| 186 |
Select a color in the list and right-clicking (or double-clicking) on it to change color. |
| 187 |
|
| 188 |
<p> |
| 189 |
commctrl color picker is used now.<br> |
| 190 |
(TODO change color picker in Tera Term) |
| 191 |
|
| 192 |
<p> |
| 193 |
Example of displaying the set color |
| 194 |
<pre> |
| 195 |
wget https://osdn.net/projects/ttssh2/scm/svn/blobs/head/trunk/tests/256colors2.pl?export=raw -O - | perl |
| 196 |
wget https://osdn.net/projects/ttssh2/scm/svn/blobs/head/trunk/tests/colortable16.sh?export=raw -O - | sh |
| 197 |
wget https://osdn.net/projects/ttssh2/scm/svn/blobs/head/trunk/tests/color-sgr-decscnm.pl?export=raw -O - | perl</pre> |
| 198 |
|
| 199 |
<dl> |
| 200 |
<dt>[default]</dt> |
| 201 |
<dd>Set default color</dd> |
| 202 |
</dl> |
| 203 |
|
| 204 |
<hr> |
| 205 |
<h2 id="bg_overview">Background Theme Overview</h2> |
| 206 |
|
| 207 |
The background image is created as follows.<br> |
| 208 |
<img src="setup-additional-visual-theme.png"><br> |
| 209 |
|
| 210 |
<hr> |
| 211 |
|
| 212 |
<h2>Color setting Overview</h2> |
| 213 |
|
| 214 |
When Tera Term 5 alpha version |
| 215 |
|
| 216 |
<pre> |
| 217 |
+------------+ +-----------------------------------+ +---------+ +----------+ |
| 218 |
|TERATERM.INI| read |Tera Term | |Theme | |Theme File| |
| 219 |
| | (Startup)| +---------+ +----------+ |(launch) |Editor | Save | INI | |
| 220 |
| Default +------------> | Startup | +-----------> +------->+ | |
| 221 |
| Colors | | | Default +----------> Draw | | | | | Colors | |
| 222 |
| <------------+ Colors | Load | Colors <-----------+ +<-------+ | |
| 223 |
| | Write | | | Default | | | OK | | Load | | |
| 224 |
| | | +---------+ +----------+ | | | | | |
| 225 |
+------------+ +-----------------------------------+ +---------+ +----------+ |
| 226 |
</pre> |
| 227 |
|
| 228 |
<ul> |
| 229 |
<li>Tera Term default colors are read from TERATERM.INI<br> |
| 230 |
Drawing colors will be the default color.<br> |
| 231 |
If themefile is loaded at startup and it contains a color theme, Drawing colors will be colors in theme. |
| 232 |
<li>Load or edit the color in the Theme Editor and press "ok" button to change drawinge colors. |
| 233 |
<li>Saving to TERATERM.INI saves default colors. |
| 234 |
<li>Cannot copy drawing color to default colors. |
| 235 |
</ul> |
| 236 |
|
| 237 |
<h2 id="default_color">About default colors</h2> |
| 238 |
|
| 239 |
Default colors and fonts can be set with the following keywords in TERATERM.INI |
| 240 |
<pre> |
| 241 |
| Attr \ ini | font on/off | color on/off | color(R,G,B,R,G,B) | |
| 242 |
|---------------|-------------------|------------------------|--------------------| |
| 243 |
| Normal | - | - | VTColor | |
| 244 |
| Bold | EnableBold | EnableBoldAttrColor | VTBoldColor | |
| 245 |
| Blink | - | EnableBlinkAttrColor | VTBlinkColor | |
| 246 |
| Reverse | - | EnableReverseAttrColor | VTReverseColor | |
| 247 |
| URL Underline | URLUnderline | EnableURLColor | URLColor | |
| 248 |
| Underline | UnderlineAttrFont | UnderlineAttrColor | VTUnderlineColor | |
| 249 |
</pre> |
| 250 |
|
| 251 |
</body> |
| 252 |
</html> |