Initial stab at fixing dark mode. Navigation and main colors are now better. Laid the groundwork for theme-based assets and fixed loading spinners for dark mode.
This commit is contained in:
parent
df08de1339
commit
17291b0cb2
@ -374,6 +374,7 @@ def navigation() -> Dict[str, Any]:
|
||||
return {
|
||||
"components": components,
|
||||
"any": jinja2_any,
|
||||
"assets": f"themes/{config.theme}/",
|
||||
"theme_url": jinja2_theme,
|
||||
"cache_bust": f"v={FRONTEND_CACHE_BUST}",
|
||||
}
|
||||
@ -384,6 +385,7 @@ def navigation() -> Dict[str, Any]:
|
||||
return {
|
||||
"components": components,
|
||||
"any": jinja2_any,
|
||||
"assets": f"themes/{config.theme}/",
|
||||
"theme_url": jinja2_theme,
|
||||
"cache_bust": f"v={FRONTEND_CACHE_BUST}",
|
||||
}
|
||||
@ -938,6 +940,7 @@ def navigation() -> Dict[str, Any]:
|
||||
"navigation": pages,
|
||||
"components": components,
|
||||
"any": jinja2_any,
|
||||
"assets": f"themes/{config.theme}/",
|
||||
"theme_url": jinja2_theme,
|
||||
"cache_bust": f"v={FRONTEND_CACHE_BUST}",
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ var Add = createReactClass({
|
||||
return (
|
||||
<Button
|
||||
className="add"
|
||||
style={this.props.style}
|
||||
disabled={this.props.disabled}
|
||||
onClick={function(event) {
|
||||
this.props.onClick(event);
|
||||
|
@ -5,6 +5,7 @@ var Delete = createReactClass({
|
||||
return (
|
||||
<Button
|
||||
className="delete"
|
||||
style={this.props.style}
|
||||
disabled={this.props.disabled}
|
||||
onClick={function(event) {
|
||||
this.props.onClick(event);
|
||||
|
@ -5,6 +5,7 @@ var Edit = createReactClass({
|
||||
return (
|
||||
<Button
|
||||
className="edit"
|
||||
style={this.props.style}
|
||||
disabled={this.props.disabled}
|
||||
onClick={function(event) {
|
||||
this.props.onClick(event);
|
||||
|
@ -195,7 +195,7 @@ var GameSettings = createReactClass({
|
||||
}.bind(this)}
|
||||
/>
|
||||
{ this.state.settings_saving[this.state.current_setting] ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
{ this.state.settings_saved[this.state.current_setting] ?
|
||||
|
@ -139,7 +139,7 @@ var Table = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more data...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ var api_management = createReactClass({
|
||||
if (this.state.info[server.id].loading) {
|
||||
return (
|
||||
<>
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} />
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} />
|
||||
{' querying server for info...'}
|
||||
</>
|
||||
);
|
||||
|
@ -90,7 +90,7 @@ var card_management = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -542,7 +542,7 @@ var arcade_management = createReactClass({
|
||||
<>
|
||||
PASELI Enabled
|
||||
{ this.state.paseli_enabled_saving ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</>
|
||||
@ -561,7 +561,7 @@ var arcade_management = createReactClass({
|
||||
<>
|
||||
PASELI Infinite
|
||||
{ this.state.paseli_infinite_saving ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</>
|
||||
@ -580,7 +580,7 @@ var arcade_management = createReactClass({
|
||||
<>
|
||||
Mask Web Address
|
||||
{ this.state.mask_services_url_saving ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</>
|
||||
|
@ -216,7 +216,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -151,7 +151,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -323,7 +323,7 @@ var settings_view = createReactClass({
|
||||
<>
|
||||
Fast/Slow Display
|
||||
{ this.state.saving_early_late ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</>
|
||||
@ -342,7 +342,7 @@ var settings_view = createReactClass({
|
||||
<>
|
||||
Combo Position
|
||||
{ this.state.saving_background_combo ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</>
|
||||
@ -395,7 +395,7 @@ var settings_view = createReactClass({
|
||||
}.bind(this)}
|
||||
/>
|
||||
{ this.state.options_saving[this.state.version] ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
{ this.state.options_saved[this.state.version] ?
|
||||
|
@ -163,7 +163,7 @@ var profile_view = createReactClass({
|
||||
/>
|
||||
}
|
||||
{ this.state.updating_rivals ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> : null
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> : null
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -173,7 +173,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ var settings_view = createReactClass({
|
||||
}.bind(this)}
|
||||
/>
|
||||
{ this.state.qpro_saving[this.state.version] ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
{ this.state.qpro_saved[this.state.version] ?
|
||||
@ -494,7 +494,7 @@ var settings_view = createReactClass({
|
||||
}.bind(this)}
|
||||
/>
|
||||
{ this.state.theme_saving[this.state.version] ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
{ this.state.theme_saved[this.state.version] ?
|
||||
@ -534,7 +534,7 @@ var settings_view = createReactClass({
|
||||
}.bind(this)}
|
||||
/>
|
||||
{ this.state.menu_saving[this.state.version] ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
{ this.state.menu_saved[this.state.version] ?
|
||||
|
@ -175,7 +175,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -169,7 +169,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ var settings_view = createReactClass({
|
||||
}.bind(this)}
|
||||
/>
|
||||
{ this.state.emblem_saving[this.state.version] ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
{ this.state.emblem_saved[this.state.version] ?
|
||||
|
@ -160,7 +160,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching_name ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
@ -255,7 +255,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching_id ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -169,7 +169,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching_name ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
@ -301,7 +301,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching_id ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -164,7 +164,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ var rivals_view = createReactClass({
|
||||
/>
|
||||
<input type="submit" value="search" />
|
||||
{ this.state.searching ?
|
||||
<img className="loading" src={Link.get('static', 'loading-16.gif')} /> :
|
||||
<img className="loading" src={Link.get('static', window.assets + 'loading-16.gif')} /> :
|
||||
null
|
||||
}
|
||||
</form>
|
||||
|
@ -153,7 +153,7 @@ var network_scores = createReactClass({
|
||||
<span className="loading" style={ {float: 'right' } }>
|
||||
<img
|
||||
className="loading"
|
||||
src={Link.get('static', 'loading-16.gif')}
|
||||
src={Link.get('static', window.assets + 'loading-16.gif')}
|
||||
/> loading more scores...
|
||||
</span> : null
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
@ -46,14 +46,14 @@ div.buttons {
|
||||
|
||||
input[type="submit"] {
|
||||
border: 1px solid #19480a;
|
||||
color: #242526;
|
||||
color: #242526;
|
||||
background: #49B979;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
input[type="button"], button.nav, button.toggle, button.edit, button.add, button.viewmore, button.btn-default {
|
||||
border: 1px solid #6a6a6a;
|
||||
color: #b0b1b2;
|
||||
color: #b0b1b2;
|
||||
background: #282828;
|
||||
margin-right: 5px;
|
||||
}
|
||||
@ -71,17 +71,17 @@ input[type="text"], input[type="password"], textarea {
|
||||
border: 1px solid #6a6a6a;
|
||||
padding: 4px;
|
||||
border-radius: 0px;
|
||||
background-color: #b3b4b5;
|
||||
background-color: #1f1f1f;
|
||||
}
|
||||
|
||||
select {
|
||||
border: 1px solid #6a6a6a;
|
||||
padding: 4px 4px 3px 4px;
|
||||
border-radius: 0px;
|
||||
background: #b3b4b5;
|
||||
background: #1f1f1f;
|
||||
}
|
||||
input {
|
||||
#b3b4b5
|
||||
#1f1f1f
|
||||
}
|
||||
|
||||
input[type="button"] {
|
||||
@ -95,9 +95,9 @@ button.toggle:not(:last-child):not(:only-child), button.edit:not(:last-child):no
|
||||
span + button.edit, span + button.toggle, span + button.delete, span + button.add,
|
||||
div + button.edit, div + button.toggle, div + button.delete, div + button.add {
|
||||
margin-left: 15px;
|
||||
border: 1px solid #6a6a6a;
|
||||
border: 1px solid #6a6a6a;
|
||||
background-color: #282828;
|
||||
color: #b3b3b3;
|
||||
color: #cecece;
|
||||
}
|
||||
|
||||
button.nav {
|
||||
@ -125,8 +125,8 @@ button.active {
|
||||
}
|
||||
|
||||
button {
|
||||
color: #b3b3b3;
|
||||
background-color: #282828;
|
||||
color: #cecece;
|
||||
background-color: #282828;
|
||||
}
|
||||
|
||||
button.delete {
|
||||
|
BIN
bemani/frontend/static/themes/dark/loading-16.gif
Executable file
BIN
bemani/frontend/static/themes/dark/loading-16.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
bemani/frontend/static/themes/dark/loading-24.gif
Executable file
BIN
bemani/frontend/static/themes/dark/loading-24.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
@ -1,6 +1,6 @@
|
||||
body {
|
||||
font-family: Helvetica;
|
||||
color: #b3b3b3;
|
||||
color: #cecece;
|
||||
margin: 0px;
|
||||
padding-bottom: 30px;
|
||||
background-color: #121212;
|
||||
@ -29,11 +29,11 @@ div.container {
|
||||
div.loading {
|
||||
margin-left: 50%;
|
||||
margin-right: 50%;
|
||||
height: 20px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
div.navigation {
|
||||
background-color: #b3b4b5;
|
||||
background-color: #1f1f1f;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
@ -124,7 +124,7 @@ ul.navigation {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin: 0px;
|
||||
background-color: #b3b4b5;
|
||||
background-color: #1f1f1f;
|
||||
position: relative;
|
||||
text-align: right;
|
||||
-webkit-touch-callout: none;
|
||||
@ -144,7 +144,7 @@ ul.navigation li {
|
||||
ul.navigation_sub {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #e4e4e4;
|
||||
background-color: #2d2d2d;
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@ -186,15 +186,15 @@ ul.navigation li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
padding: 10px;
|
||||
color: #121212;
|
||||
color: #b5b5b5;
|
||||
}
|
||||
|
||||
ul.navigation li a:hover {
|
||||
background-color: #d2d2d2;
|
||||
background-color: #343434;
|
||||
}
|
||||
|
||||
ul.navigation li a:active {
|
||||
background-color: #d2d2d2;
|
||||
background-color: #343434;
|
||||
}
|
||||
|
||||
ul.navigation > li > a.current {
|
||||
|
@ -20,7 +20,7 @@ table.list th {
|
||||
}
|
||||
|
||||
table.list th.action {
|
||||
background-color: #b3b4b5;
|
||||
background-color: #1f1f1f;
|
||||
border: none;
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ table.list tbody tr:nth-child(even) td {
|
||||
}
|
||||
|
||||
table td.subheader {
|
||||
background-color: #b3b4b5 ! important;
|
||||
background-color: #1f1f1f ! important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@ -102,7 +102,7 @@ table.records a, table.attempts a, table.topscores a, table.players a, table.jub
|
||||
}
|
||||
|
||||
td.edit {
|
||||
background-color: #b3b4b5 ! important;
|
||||
background-color: #1f1f1f ! important;
|
||||
border: none ! important;
|
||||
}
|
||||
|
||||
|
BIN
bemani/frontend/static/themes/default/loading-16.gif
Executable file
BIN
bemani/frontend/static/themes/default/loading-16.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
bemani/frontend/static/themes/default/loading-24.gif
Executable file
BIN
bemani/frontend/static/themes/default/loading-24.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
@ -23,7 +23,7 @@ div.container {
|
||||
div.loading {
|
||||
margin-left: 50%;
|
||||
margin-right: 50%;
|
||||
height: 20px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
div.navigation {
|
||||
|
@ -150,6 +150,7 @@
|
||||
window.{{name}} = {{ val|tojson|safe }};
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
window.assets = {{ assets|tojson|safe }};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
|
@ -5,7 +5,7 @@
|
||||
{% block content %}
|
||||
<div id="content">
|
||||
<div class="loading">
|
||||
<img src="{{ url_for('static', filename='loading-20.gif') }}" />
|
||||
<img src="{{ url_for('static', filename=assets + 'loading-24.gif') }}" />
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user