Skip to content

Commit dcd4c04

Browse files
committed
theme improvements
1 parent 76eea34 commit dcd4c04

11 files changed

Lines changed: 87 additions & 135 deletions

assets_js_bitrequest_core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ function set_theme() {
581581
if (filename === "default.css") {
582582
return
583583
}
584-
$("link#theme").attr("href", d_proxy() + "/proxy/v1/themes/" + filename);
584+
const version = $("#ua").attr("data-version");
585+
$("link#theme").attr("href", d_proxy() + "/proxy/v1/themes/" + filename + "?v=" + version);
585586
}
586587
}
587588

assets_js_bitrequest_settings.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,20 +579,22 @@ function select_theme() {
579579
theme_not_found();
580580
return
581581
}
582-
$("link#theme").attr("href", d_proxy() + "/proxy/v1/themes/" + filename);
582+
const version = $("#ua").attr("data-version");
583+
$("link#theme").attr("href", d_proxy() + "/proxy/v1/themes/" + filename + "?v=" + version);
583584
})
584585
}
585586

586587
function cancel_theme() {
587588
$(document).on("click", "#canceltheme", function() {
588-
$("link#theme").attr("href", d_proxy() + "/proxy/v1/themes/" + $("#themesettings").data("selected"));
589+
const version = $("#ua").attr("data-version");
590+
$("link#theme").attr("href", d_proxy() + "/proxy/v1/themes/" + $("#themesettings").data("selected") + "?v=" + version);
589591
canceldialog();
590592
})
591593
}
592594

593595
function submit_theme() {
594596
$(document).on("click touch", "#submittheme", function() {
595-
var thisvalue = $("#themeformbox").find("input:first").val();
597+
const thisvalue = $("#themeformbox").find("input:first").val();
596598
$("#themesettings").data("selected", thisvalue).find("p").html(thisvalue);
597599
canceldialog();
598600
notify("Data saved");
@@ -601,7 +603,8 @@ function submit_theme() {
601603
}
602604

603605
function theme_not_found() {
604-
$("link#theme").attr("href", "assets_styles_themes_default.css");
606+
const version = $("#ua").attr("data-version");
607+
$("link#theme").attr("href", "assets_styles_themes_default.css?v=" + version);
605608
}
606609

607610
// ** SECURITY: **

assets_styles_styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ li[data-checked="false"] .checkbox:before,
17471747
}
17481748

17491749
#actions {
1750-
float: left;
1750+
float: right;
17511751
width: 100%;
17521752
padding: 0;
17531753
font-size: 140%;
@@ -1756,6 +1756,7 @@ li[data-checked="false"] .checkbox:before,
17561756

17571757
#actions.custom {
17581758
opacity: 0;
1759+
pointer-events:none;
17591760
}
17601761

17611762
#actions div {

assets_styles_themes_default.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Default theme
3+
* Use this stylesheet as a basis for new themes.
4+
*/
5+
16
/* Body and base background */
27
body,
38
.requestlist>li.rqli,

proxy/v1/themes/aurora.css

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
/*
2-
* Aurora iOS Theme (Mint Edition)
3-
*
2+
* Aurora iOS Theme
43
* A bright, modern, and tactile interface inspired by soft materials and pastel gradients.
5-
* Key principles:
6-
* 1. Light & Airy Background: A soft, multi-tone pastel gradient creates a serene backdrop.
7-
* 2. Claymorphism & Depth: UI elements use layered, soft shadows to appear as if they are
8-
* extruded from the background, creating a tactile "clay" effect.
9-
* 3. Vibrant Accents: A lively mint-to-teal gradient for interactive elements makes the UI pop.
10-
* 4. Clarity & Readability: Crisp, dark text and rounded, friendly shapes ensure ease of use.
114
*/
125

136
/* Body and base background */
147
body {
15-
/* A beautiful, subtle gradient that evokes a sunrise or aurora */
16-
background: linear-gradient(135deg, #E6E6FA, #E0FFFF, #FFF0F5);
8+
background: linear-gradient(135deg, #d9d9f5, #d1fafa, #ffe8f0);
179
background-attachment: fixed;
18-
color: #3D4451;
19-
/* A soft, dark slate color for primary text */
10+
color: #525b6a;
2011
}
2112

2213
.requestlist>li.rqli,
2314
.requestlist>li .brmarker,
2415
.requestlist>li .brstatuspanel {
25-
/* Base background for list items, this will be styled more specifically below */
2616
background-color: transparent;
2717
}
2818

@@ -40,7 +30,6 @@ header,
4030
background-color: rgba(255, 255, 255, 0.6);
4131
-webkit-backdrop-filter: blur(18px);
4232
backdrop-filter: blur(18px);
43-
/* A soft shadow to "lift" the header off the page */
4433
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
4534
border-bottom: 1px solid rgba(255, 255, 255, 0.7);
4635
}
@@ -49,15 +38,13 @@ header,
4938
.heading {
5039
padding-bottom: 1.3em;
5140
color: #2c333a;
52-
/* Darker heading for more emphasis */
5341
}
5442

5543
/* Request list item backgrounds - The "Claymorphic" elements */
5644
.requestlist>li.rqli {
5745
background-color: #f7f7f7;
5846
border-radius: 15px;
5947
margin-bottom: 12px;
60-
/* Key for the clay effect: a combination of a soft outer shadow and a subtle inner highlight */
6148
box-shadow: 5px 5px 10px rgba(180, 190, 200, 0.4),
6249
inset 2px 2px 4px rgba(255, 255, 255, 0.8);
6350
border: 1px solid rgba(255, 255, 255, 0.9);
@@ -71,22 +58,19 @@ header,
7158
}
7259

7360
.requestlist>li.rqli:nth-child(odd) {
74-
/* Keeping the background consistent for a cleaner look in this theme */
7561
background-color: #f7f7f7;
7662
}
7763

7864
.requestlist>li.requestoutgoing.visible_request,
7965
.requestlist>li.requestoutgoing.visible_request .brstatuspanel,
8066
.requestlist>li.requestoutgoing .brmarker {
8167
background-color: rgba(230, 240, 230, 0.8);
82-
/* A very subtle green tint */
8368
}
8469

8570
.requestlist>li.requestlocal.visible_request,
8671
.requestlist>li.requestlocal.visible_request .brstatuspanel,
8772
.requestlist>li.requestlocal .brmarker {
8873
background-color: rgba(230, 235, 245, 0.8);
89-
/* A very subtle blue tint */
9074
}
9175

9276
/* Link and interactive element colors */
@@ -102,12 +86,10 @@ header,
10286
.qrscanner,
10387
.ref {
10488
color: #1ABC9C;
105-
/* A vibrant, friendly teal for links and icons */
10689
}
10790

10891
.button,
10992
.alias {
110-
/* A fresh pastel green gradient for the main call-to-action buttons */
11193
background: linear-gradient(45deg, #A9DFBF, #48C9B0);
11294
border: none;
11395
border-radius: 12px;

proxy/v1/themes/forest_canopy.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
/* Body and base background */
77
body {
8-
/* A subtle gradient from deep forest green to a dark, earthy floor */
98
background: linear-gradient(to bottom, #2d4f3f, #1a1a1c);
109
background-attachment: fixed;
1110
color: #EAEAEA;
@@ -27,8 +26,7 @@ body {
2726
/* Header and navigation background */
2827
header,
2928
#fixednav {
30-
/* A semi-transparent deep green glass */
31-
background-color: rgba(45, 79, 63, 0.65);
29+
background-color: rgba(32, 40, 36, 0.65);
3230
-webkit-backdrop-filter: blur(15px);
3331
backdrop-filter: blur(15px);
3432
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
@@ -79,7 +77,6 @@ header,
7977
.qrscanner,
8078
.ref {
8179
color: #009788;
82-
/* A bright, minty green */
8380
}
8481

8582
.button,

proxy/v1/themes/malignant_glare.css

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,72 @@
11
/*
22
* Malignant Glare
3-
*
4-
* An aggressive, malware-inspired cyberpunk interface.
5-
* Key principles:
6-
* 1. Corrupted Grid: A dark, deep-space background with a hex grid and animated scanlines.
7-
* 2. Menacing Neon: A vibrant, dangerous magenta is the primary accent, offset by electric cyan.
8-
* 3. Damaged & Angular UI: Elements are "chipped" and broken using clip-path for a corrupted feel.
9-
* 4. Flickering & Unstable: Animations on headings and borders create a sense of system instability.
3+
* An aggressive, cyberpunk-inspired interface.
104
*/
115

12-
/* --- Keyframe Animations --- */
13-
/* CORRECTED: This animation now scrolls the original texture the full height of the screen */
6+
7+
/* Keyframe Animations */
148
@keyframes scanline {
159
0% {
1610
transform: translateY(0);
1711
}
1812

1913
100% {
2014
transform: translateY(100%);
21-
/* Moves down by half its own height (100% of the screen) */
2215
}
2316
}
2417

25-
@keyframes text-flicker {
26-
0% {
27-
text-shadow: 0 0 10px #ff00c1, 0 0 5px #00ffff, 0 0 2px #ffffff;
18+
@keyframes cyber-flicker {
19+
20+
0%,
21+
75%,
22+
100% {
23+
text-shadow: 0 0 5px #ff00c1, 0 0 10px #ff00c1;
24+
transform: translate(0, 0) skewX(0);
25+
}
26+
27+
76% {
28+
text-shadow: 0 0 5px #ff00c1, 0 0 10px #ff00c1, -1px 0 2px #00ffff;
29+
}
30+
31+
77% {
32+
text-shadow: 0 0 5px #ff00c1, 0 0 10px #ff00c1, -2px 1px 3px #00ffff, 2px -1px 3px #e81c67;
33+
transform: translate(1px, -2px) skewX(-5deg);
2834
}
2935

30-
15% {
31-
text-shadow: 0 0 12px #ff00c1, 0 0 7px #00ffff, 0 0 3px #ffffff;
36+
78% {
37+
text-shadow: 0 0 5px #ff00c1, 0 0 10px #ff00c1, 1px -1px 3px #00ffff, -1px 1px 3px #e81c67;
38+
transform: translate(-1px, 1px) skewX(5deg);
3239
}
3340

34-
30% {
35-
text-shadow: 0 0 8px #ff00c1, 0 0 4px #00ffff, 0 0 2px #ffffff;
41+
79% {
42+
text-shadow: 0 0 5px #ff00c1, 0 0 10px #ff00c1;
43+
transform: translate(0, 0) skewX(0);
44+
}
45+
}
46+
47+
@keyframes glitch-skew {
48+
0% {
49+
transform: skewX(0);
50+
}
51+
52+
25% {
53+
transform: skewX(-4deg);
3654
}
3755

3856
50% {
39-
text-shadow: none;
57+
transform: skewX(4deg);
4058
}
4159

42-
51% {
43-
text-shadow: 0 0 10px #ff00c1, 0 0 5px #00ffff, 0 0 2px #ffffff;
60+
75% {
61+
transform: skewX(-2deg);
4462
}
4563

4664
100% {
47-
text-shadow: 0 0 10px #ff00c1, 0 0 5px #00ffff, 0 0 2px #ffffff;
65+
transform: skewX(0);
4866
}
4967
}
5068

51-
/* --- Body and Background --- */
69+
/* Body and base background */
5270
body {
5371
background-color: #0d011a;
5472
color: #b3b3b3;
@@ -70,10 +88,8 @@ body::after {
7088
rgba(255, 255, 255, 0.05) 1px,
7189
transparent 1px,
7290
transparent 4px);
73-
/* Apply corrected animation with a slower, more deliberate speed */
7491
animation: scanline 8s infinite linear;
7592
pointer-events: none;
76-
/* Max z-index to ensure it overlays everything */
7793
z-index: 2147483647;
7894
}
7995

@@ -85,7 +101,7 @@ body::after {
85101
box-shadow: inset 0 0 15px rgba(255, 0, 193, 0.3), 0 0 15px rgba(255, 0, 193, 0.3);
86102
}
87103

88-
/* --- Header & Nav --- */
104+
/* Header and navigation background */
89105
header,
90106
#fixednav {
91107
font-family: 'Courier New', Courier, monospace;
@@ -94,15 +110,15 @@ header,
94110
box-shadow: 0 0 20px rgba(255, 0, 193, 0.5);
95111
}
96112

97-
/* --- Heading Styles --- */
113+
/* Heading styles */
98114
.heading {
99115
font-family: 'Courier New', Courier, monospace;
100116
padding-bottom: 1.3em;
101117
color: #ffffff;
102-
animation: text-flicker 3s infinite linear;
118+
animation: cyber-flicker 4s infinite linear;
103119
}
104120

105-
/* --- List Items --- */
121+
/* Request list item backgrounds */
106122
.requestlist>li.rqli {
107123
background-color: rgba(29, 9, 48, 0.4);
108124
margin-bottom: 2px;
@@ -131,7 +147,7 @@ header,
131147
color: #b3b3b3;
132148
}
133149

134-
/* --- Links & Buttons --- */
150+
/* Link and interactive element colors */
135151
#dialogbody h2:before,
136152
#toseed,
137153
#actions div,
@@ -149,6 +165,7 @@ header,
149165
.button,
150166
.alias {
151167
background-color: #ff00c1;
168+
border: 1px solid #ff00c1;
152169
border: none;
153170
font-weight: bold;
154171
text-transform: uppercase;
@@ -162,9 +179,11 @@ header,
162179
background-color: #ffffff;
163180
color: #ff00c1;
164181
box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
182+
animation: glitch-skew 0.35s ease-in-out both;
183+
border: 1px solid #ff00c1;
165184
}
166185

167-
/* --- Icon Filter --- */
186+
/* Icon Filter */
168187
.currencylist .cmc_icon {
169188
filter: grayscale(1) sepia(1) hue-rotate(240deg) saturate(8) brightness(0.9);
170189
}

proxy/v1/themes/oceanic_depth.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
/* Body and base background */
77
body {
8-
/* A subtle gradient from deep sea blue to a dark abyss */
98
background: linear-gradient(to bottom, #1d3b5f, #1a1a1c);
109
background-attachment: fixed;
1110
color: #EAEAEA;
@@ -27,8 +26,7 @@ body {
2726
/* Header and navigation background */
2827
header,
2928
#fixednav {
30-
/* A semi-transparent deep blue glass */
31-
background-color: rgba(29, 59, 95, 0.65);
29+
background-color: rgba(20, 29, 41, 0.65);
3230
-webkit-backdrop-filter: blur(15px);
3331
backdrop-filter: blur(15px);
3432
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
@@ -78,14 +76,12 @@ header,
7876
.selectarrows,
7977
.qrscanner,
8078
.ref {
81-
color: #63e2b7;
82-
/* A vibrant, light teal */
79+
color: #009788;
8380
}
8481

8582
.button,
8683
.alias {
87-
background-color: rgba(99, 226, 183, 0.8);
88-
/* Semi-transparent teal */
84+
background-color: #009788;
8985
border: 1px solid rgba(255, 255, 255, 0.2);
9086
border-radius: 10px;
9187
-webkit-backdrop-filter: blur(5px);

0 commit comments

Comments
 (0)