forked from Vanortton/Bento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.html
154 lines (150 loc) · 8.33 KB
/
settings.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Configurações</title>
<link rel="shortcut icon" href="assets/icons/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="app.css">
<link rel="stylesheet" href="settings.css">
<script src="https://unpkg.com/lucide@latest"></script>
</head>
<body>
<a href="./">
<button id="settings">
<i id="settingsIcon" icon-name="home"></i>
</button>
</a>
<button id="themeButton">
<i id="themeIcon" icon-name="moon"></i>
</button>
<div class="alert">Alert</div>
<main class="main">
<h1>Settings</h1>
<br>
<hr>
<form class="settings" action="">
<div class="nome">
<h3>Nome</h3>
<input type="text" name="name" placeholder="Type your name" />
</div>
<hr />
<div class="imageBackground">
<h3>Background image</h3>
<label for="imageBackgroundtrue"><input type="radio" name="imageBackground" id="imageBackgroundtrue"
value="true" /> Sim</label>
<label for="imageBackgroundfalse"><input type="radio" name="imageBackground" id="imageBackgroundfalse"
value="false" /> Não</label>
<label for="uploadImageBackground" id="labelUploadBackground">Upload Image</label>
<input type="file" accept="image/png, image/jpeg, image/jpg" id="uploadImageBackground" onchange="imageUploaded()">
</div>
<hr />
<div class="openInNewTab">
<h3>Open links in new tab</h3>
<label for="openInNewTabtrue"><input type="radio" name="openInNewTab" id="openInNewTabtrue"
value="true" /> Yes</label>
<label for="openInNewTabfalse"><input type="radio" name="openInNewTab" id="openInNewTabfalse"
value="false" /> No</label>
</div>
<hr />
<div class="twelveHourFormat">
<h3>Time in 12-hour format</h3>
<label for="twelveHourFormattrue"><input type="radio" name="twelveHourFormat" id="twelveHourFormattrue"
value="true" /> Yes</label>
<label for="twelveHourFormatfalse"><input type="radio" name="twelveHourFormat"
id="twelveHourFormatfalse" value="false" /> No</label>
</div>
<hr />
<div class="layout">
<h3>Layout</h3>
<label for="bentoLayoutbento"><input type="radio" name="bentoLayout" id="bentoLayoutbento"
value="bento" /> Bento</label>
<label for="bentoLayoutlists"><input type="radio" name="bentoLayout" id="bentoLayoutlists"
value="lists" /> Lists</label>
<label for="bentoLayoutbuttons"><input type="radio" name="bentoLayout" id="bentoLayoutbuttons"
value="buttons" /> Buttons</label>
</div>
<hr />
<div class="waterIcons">
<h3>Weather icons theme</h3>
<label for="weatherIconsOneDark"><input type="radio" name="weatherIcons" id="weatherIconsOneDark"
value="OneDark" /> OneDark (padrão)</label>
<label for="weatherIconsNord"><input type="radio" name="weatherIcons" id="weatherIconsNord"
value="Nord" /> Nord</label>
<label for="weatherIconsDark"><input type="radio" name="weatherIcons" id="weatherIconsDark"
value="Dark" /> Dark</label>
<label for="weatherIconsWhite"><input type="radio" name="weatherIcons" id="weatherIconsWhite"
value="White" /> White</label>
</div>
<hr />
<div class="changeThemeByHour">
<h3>Change theme by time</h3>
<label for="changeThemeByHourfalse"><input type="radio" name="changeThemeByHour"
id="changeThemeByHourfalse" value="false" /> No</label>
<label for="changeThemeByHourtrue"><input type="radio" name="changeThemeByHour"
id="changeThemeByHourtrue" value="true" /> Yes</label>
<label for="hourDarkThemeInactive">A partir de <input type="time" name="hourDarkThemeInactive"
id="hourDarkThemeInactive claro" /> display in light theme.</label>
<label for="hourDarkThemeActive">A partir de <input type="time" name="hourDarkThemeActive"
id="hourDarkThemeActive escuro" /> display in dark theme.</label>
</div>
<hr />
<div class="changeThemeByOS">
<h3>Mudar tema a partir das preferencias do sistema</h3>
<label for="changeThemeByOStrue"><input type="radio" name="changeThemeByOS" id="changeThemeByOStrue"
value="true" /> Yes</label>
<label for="changeThemeByOSfalse"><input type="radio" name="changeThemeByOS" id="changeThemeByOSfalse"
value="false" /> No</label>
</div>
<hr />
<div class="autoChangeTheme">
<h3>Automatically change theme <span style="color: #8b8b8b; font-size: .8em">(from time or browser preferences)</span></h3>
<label for="autoChangeThemetrue"><input type="radio" name="autoChangeTheme" id="autoChangeThemetrue"
value="true" /> Yes</label>
<label for="autoChangeThemefalse"><input type="radio" name="autoChangeTheme" id="autoChangeThemefalse"
value="false" /> No</label>
</div>
<div class="devOption">
<h3>Developer options</h3>
<p style="color: #8b8b8b; font-size: .9em">Os ícones que aparecem nessa aplicação são do Lucide,
essa opção permite que você escolha o ícone do link quando você editá-lo.<br/>ATTENTION: THE NAME OF THE LUCIDE ICONS ARE IN ENGLISH!</p>
<label for="devOptionTrue"><input type="radio" name="devOption" id="devOptionTrue"
value="true" /> Activate</label>
<label for="devOptionFalse"><input type="radio" name="devOption" id="devOptionFalse"
value="false" /> Deactivate</label>
</div>
<div class="buttons">
<button btn-salvar type="submit">Submit</button>
<button><a href="./index.html">Cancel</a></button>
</div>
<hr>
<div class="dangerZone">
<h3>Danger Zone</h3>
<button format-data type="button">
<strong>Erase all data</strong>
</button>
<button format-buttons type="button">
<strong>Restore buttons as factory</strong>
</button>
</div>
<hr>
<div class="homePage">
<h3>Set Bento as Homepage and New Tab Page</h3>
<a href="https://support.microsoft.com/pt-br/microsoft-edge/altere-a-home-page-do-seu-navegador-a531e1b8-ed54-d057-0262-cc5983a065c6">Defina como a página inicial do seu navegador</a>
<ul>
<li>Se você usar o Firefox: <a href="https://addons.mozilla.org/en-US/firefox/addon/custom-new-tab-page/?src=search" rel="nofollow">Custom New Tab Page</a> e certifique-se de ativar "Forçar links para abrir no quadro superior (experimental)" na página de preferências da extensão.</li>
<li>Se você usar Chromium (Brave, Vivaldi, Chrome): <a href="https://chrome.google.com/webstore/detail/custom-new-tab-url/mmjbdbjnoablegbkcklggeknkfcjkjia">Custom New Tab Url</a></li>
</ul>
</div>
</form>
</main>
<footer>
<!-- Criado por <a href="https://github.com/migueravila/">Miguel Ávila</a>-->
<!-- e melhorado por <a href="https://github.com/Vanortton">Vanorton</a>-->
</footer>
<script src="config.js"></script>
<script src="assets/js/settings.js"></script>
<script src="assets/js/theme.js"></script>
</body>
</html>