Skip to content
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

Adjust and group options style with headers like Firefox #43 #170

Merged
merged 41 commits into from
Apr 2, 2019

Conversation

ongspxm
Copy link
Contributor

@ongspxm ongspxm commented Mar 14, 2019

closes #43

Currently the options page is not inline with the style guide used by 
firefox's setting pages (e.g. `about:preferences`).

Let's update the option page to use similar styles and at the same 
time, add some grouping to the options to enhance the page.

Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, that already looks promising. It generally still feels a little "compressed", i.e. some spacing is missing, but it looks good so far.

However, generally, why not keep the ul->li structure? It makes many sense semantically. You can still put each one into sections then.

src/options/options.html Outdated Show resolved Hide resolved
@rugk
Copy link
Owner

rugk commented Mar 14, 2019

Note the details may actually depend on #97, respectivly merging #97 would increase familarily a lot, too, but as you see this is blocked for several reasons.

@ongspxm
Copy link
Contributor Author

ongspxm commented Mar 14, 2019

Note the details may actually depend on #97, respectivly merging #97 would increase familarily a lot, too, but as you see this is blocked for several reasons.

okay, i will go and take a look

@rugk
Copy link
Owner

rugk commented Mar 14, 2019

No, that was not how I meant it. That was purely informational, and you can ignore #97. Actually, solving #97 is a totally seperate task, so just keep this PR here, as it is. #97 can be merged after/seperately or none at all afterwards.

src/options/options.html Outdated Show resolved Hide resolved
@ongspxm
Copy link
Contributor Author

ongspxm commented Mar 14, 2019

No, that was not how I meant it. That was purely informational, and you can ignore

Do you prefer to use browser-style?

@rugk
Copy link
Owner

rugk commented Mar 14, 2019

No, as said, this is the task of #97 and #44, so do not add this. Reasons are stated in #97.

Copy link
Contributor Author

@ongspxm ongspxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rugk ready for review

src/_locales/en/messages.json Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
@rugk rugk changed the title wip: Adjust and group options style with headers like Firefox #43 Adjust and group options style with headers like Firefox #43 Mar 14, 2019
@ongspxm
Copy link
Contributor Author

ongspxm commented Mar 14, 2019

I used title to refer to the h1 text, this is one of the subtitles, so i used the current naming convention omstead

Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So @ongspxm I just noticed I actually did not thank you for your first contribution here. (Just noticed it, sorry.)
So thanks for your first contribution to this project! 🎉 👍
I hope you'll like this project and enjoy hacking on it… 😃


So some more general things:

  • from a visual look (and comparison to FF settings) I consider this still be a little to light (or, rather, it looks almost blurred and not as sharp as FF settings) and the bottom-margin after subheadings seems to be a little small and makes it all look quite compressed:
    grafik - vs - grafik
  • as I said previously, why not keep ul->li structure as before? Using many many divs instead decreasing semantics in the HTML, IMHO? (also keeping accessibility in mind, where it totally makes sense to read options as a list of options)

src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I think you misunderstoff the ul thing. IMHO, you can (and should) still use sections (for each big section or possibly also subsectioon, where a heading is inside), but inside of these still use a "list of options", i.e. ul/li.

E.g. like this:

<section>
    <h1> .... </h1>
    <ul> <!-- option list -->
        <li>...</li>
        ....
    </ul>
</section>

Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also noticed the changes here somehow broke the loading & saving of the qrCodeType option - while the qrCodeSize works as expected.

Maybe data-optiongroup and data-type="radiogroup" are needed to be added?

src/options/options.html Outdated Show resolved Hide resolved
Co-Authored-By: ongspxm <ongspxm@gmail.com>
@ongspxm
Copy link
Contributor Author

ongspxm commented Mar 26, 2019

Another note: This needs testing on Android, as there the general font-size of the settings is different and there I adjust the design.

For that i need to build the xpi file right? is it just running the build script?

@rugk
Copy link
Owner

rugk commented Mar 28, 2019

For that i need to build the xpi file right? is it just running the build script?

Yep, you can do. (Note you must run it from the repo dir, i.e. don't cd into scripts.)
Or you just ZIP the whole dir (manifest.json should be in the root), then you may only have some more, unnecessary files. You can follow the official docs on MDN then.

I feel it looks better now.
Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, on the desktop, I think this is really nice now.

As said, needs testing on Android.

Also one last thing:
Maybe we should separate the reset button from the other options, too? As "reset all settings" really does not belong to the other settings?
So an additional separator line here:
image

As I guess you need to refactor the existing code a little for that (as no h1 is there), please use a a semantically useful HTML tag. (ehm, seperator hr?)

Or does this violate the Photon guide? As I just found a similar case in the Firefox UI here, where the bottom things are kinda unrelated to the rest of the content (this is the bottom of the sync options):
image

So maybe just adjust it like that, i.e. add some space in between – I am not sure whether that looks decent however, and conveys the feeling that it is separated…? 🤔


Also, I just noticed, when a message is displayed: This gab is a little huge, is not it? Maybe we can shrink it a little?

image

src/options/options.css Outdated Show resolved Hide resolved
margin-top: 10px;
padding: 0px;
form {
margin: 16px 32px;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did you take this numbers from? Are these somewhat official?

Because if I had to choose a margin/padding for that here, I'd try to align the options with how the other Firefox elements are inset at the top of it?
Is this possible in some way? If so, it may look quite nice as it aligns better into the general UI then…

align

(And BTW, I predict on Android this can cause issues 😉)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screenshot-1553834447_667x821

this is how it looks without margin, does it looks a little squeezy?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think so?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sides at least

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay fine. Go with the way you like it best… (maybe even a compromise, i.e. not the "original" 32px or what it was)

@ongspxm
Copy link
Contributor Author

ongspxm commented Mar 29, 2019

does it look alright on android?

test

Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW it looks suprisingly good on Android! I would not have expected that...

Did you change anything for Android? (Note you can use the mobile class. Also note that the current CSS changes the font-size there.)

The only issue I see is that the message bar seems to miss some padding or so at the right - it should not "touch" the right side of the screen, but this is probably not introduced by your PR (needs to be looked at):
grafik

src/options/options.css Show resolved Hide resolved
src/options/options.css Show resolved Hide resolved
src/options/options.html Outdated Show resolved Hide resolved
Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general however.

src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
Co-Authored-By: ongspxm <ongspxm@gmail.com>
src/options/options.css Outdated Show resolved Hide resolved
src/options/options.css Outdated Show resolved Hide resolved
Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So LGTM now finally. I guess we had enough iterations… 😉

Thanks again for the contribution, I think the result looks quite neat. 😃

I guess I'll merge it soon, especially so translators can then add translations for the new strings that have been introduced. 😄

@rugk rugk merged commit 1ddf9bc into rugk:master Apr 2, 2019
@rugk rugk added this to the 1.6 milestone Apr 2, 2019
rugk added a commit to TinyWebEx/AutomaticSettings that referenced this pull request May 10, 2019
also adds contributor per PR rugk/offline-qr-code#170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust and group options style with headers like Firefox
2 participants