-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Center loading screen and add logo #1668
Conversation
8f3d099
to
bb57165
Compare
bb57165
to
53158e9
Compare
client/index.html
Outdated
@@ -95,7 +88,7 @@ <h1 class="title" id="loading-title">The Lounge is loading…</h1> | |||
<div id="image-viewer"></div> | |||
|
|||
<script src="js/bundle.vendor.js"></script> | |||
<script src="js/bundle.js"></script> | |||
<script src="js/bundlez.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accidental z
?
53158e9
to
ad35230
Compare
ad35230
to
43eec14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like it a bit better.
client/css/style.css
Outdated
} | ||
|
||
#loading p { | ||
margin-top: 10px; | ||
} | ||
|
||
#loading img { | ||
max-width: 256px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding a max-height
or something (Chrome tells me the image shows as 256px x 171.48px)? On load there is a bump until the image is loaded, which is right in the middle of loading (at least in my case).
I'm playing with slow network and it does that too.
91ea13f
to
85ac9c2
Compare
@astorije Fixed it up by further using flexbox instead of absolute positioning. I also set exact size on the image so the jumping doesn't happen. Can you confirm it's fine now? |
85ac9c2
to
f16b612
Compare
client/index.html.tpl
Outdated
</div> | ||
</div> | ||
<div id="loading-status-container"> | ||
<img src="img/logo-vertical-transparent-bg.svg" alt="The Lounge" width="256" height="170"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I often forget, but we allow server config to specify a custom theme, which is then used on loading screen. When theme is dark, result is pretty horrible:
What about having a second image here (this one) hidden with CSS, then custom themes can hide the normal one and display inverted logo only?
(Alternatively, get rid of server config for theme and only have official theme on page load... I know, I know, this idea is not liked 😅)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, I know, this idea is not liked
It's not liked because those of us using dark themes don't like a bright flash when loading the lounge. If we were to get custom themes to sync from client to server, then I'd be fine with removing the server theme. Only then.
Also, bear in mind that even if you did remove the server theme, the client theme takes over before this screen goes away sometimes, so this still needs to be dealt with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was not a real suggestion, just a bit of trolling :D
Real suggestion is the 2 images, but there are probably others (css background?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you were trolling, I'm just making sure people know the reasons for it :-P
As for the actual feature...I'm not sure which I prefer. The hidden image is easiest for theme makers, but also most feels like a hack. Maybe just making both images available on the server and themes can set css background, as you say. Shouldn't be too difficult?
Other option (this is bigger than this PR I think) is we can have a way for themes to set themselves as "light" or "dark" and they can inherit things like this from defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do some color changing dynamically (e.g. from manifest or background color) as it's svg
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That could also work.
Very nice fixes @xPaw, good job! |
Okay I've embedded the SVG in html itself, this allows themes to individually change colors of the logo. |
ea1a330
to
15e07b8
Compare
How does letting themes change the logo colors square with the brand guidelines given by the logo designer in #282? Specifically, "Don't alter or change the colors". |
What @dgw said is on point. Let's not do this, it would be a recipe to disaster. Let's go with either having 2 images, or choosing the image via CSS background like @McInkay mentioned. I don't have a preference over which of those solutions though. |
Brand guideline or not, I think this is a slightly more elegant solution, as opposed to having to switch images (either there are 2 img tags in the page, or change background-image). |
That requires theme authors to set up our specific colors as opposed to pick an image, I don't find that elegant at all from a theme author perspective. Also not very elegant to embed the SVG code within the markup IMO. I think we really shouldn't do that. |
Euch. I think I'm probably with @astorije - we have strict guidelines around the logo, so we shouldn't encourage breaking the guidelines. So probably background css. |
Mind you, changing image url won't stop theme designers from switching to any other logo they've designed (so they could copy the svg and change the colors there)... |
All things considered, I would prefer having both |
15e07b8
to
cb1bfc1
Compare
cb1bfc1
to
276266e
Compare
Javascript message was broken in 1d47290