forked from MurzNN/TST-Colored-tabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
70 lines (55 loc) · 2.76 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<style>
table.hosts {
width: 100%;
}
</style>
<body>
<form name="form">
<section class="preferences">
<h3 class="title">Settings for all tabs</h3>
<div class="browser-style"><label>Saturation: <input id="saturation" type="number" size=2/></label></div>
<div class="browser-style"><label>Lightness: <input id="lightness" type="number" size=2/></label></div>
<div class="browser-style"><label>Number of colors: <input id="colors" type="number" size=2/></label>
<div class="description">Number of color hues used, maximum is 360, recommended is 15.</div>
<h3 class="title">Active tab</h3>
<div class="browser-style"><label for="active-saturate">Saturate %:</label> <input id="active-saturate" type="number" size=2/></div>
<div class="browser-style"><label for="active-brightness">Brightness %:</label> <input id="active-brightness" type="number" size=2/></label></div>
<div class="browser-style"><input id="active-bold" type="checkbox"/> <label for="active-bold">Force <strong>bold</strong> text for active tab</label></div>
<h3 class="title">Hovered tab</h3>
<div class="browser-style"><label for="hover-saturate">Saturate %:</label> <input id="hover-saturate" type="number" size=2/></div>
<div class="browser-style"><label for="hover-brightness">Brightness %:</label> <input id="hover-brightness" type="number" size=2/></div>
<h3 class="title">Per host colors</h3>
<template class="host-item">
<td><input name="host[]" /></td>
<td><input name="regexp[]" type="checkbox" /></td>
<td><input name="color[]" type="color" /></td>
<td><input name="disabled[]" type="checkbox" /></td>
<td><button type="button" class="browser-style add-button">+</button><button type="button" class="browser-style del-button">-</button></td>
</template>
<table class="hosts">
<thead>
<th>Host</th>
<th>Regexp</th>
<th>Color</th>
<th>Disabled</th>
<th>Action</th>
</thead>
<tbody>
</tbody>
</table>
<div class="description">Remove "disabled" checkbox for enable per-host custom colors on needed hosts.
Use "Regexp" checkbox when you want to add wildcard for domains via regular expression line.</div>
</section>
<button class="browser-style" id="save-button">Save and apply settings</button>
<button class="browser-style" id="reset-button">Reset to defaults</button>
</form>
<script src="background.js"></script>
<script src="sanitizer.js"></script>
<script src="options.js"></script>
</body>
</html>