-
Notifications
You must be signed in to change notification settings - Fork 98
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
Use a more modern material-designed UI #154
Conversation
Changes look interesting. I don’t know how to build apk, is it possible to post app apk to see what the application looks like? |
…ifecycle callbacks
Yes, please compile us an apk to test it! |
I think the work on the UI and other features are more or less completed, and the PR is ready. |
@MuntashirAkon Thank you for the PR, there's a lot to like. There are a lot of changes, I need to spend a lot more time with it, but here are some observations/questions so far (I checked out 857a3ac), in no particular order:
Note that device's system theme is dark, it looks like some list items occasionally "forget" they are supposed to use light theme and switch to system one
|
It removes the dictionary if there's already a dictionary with the same ID.
@itkach: Thanks for your review. You should use numbers instead of bullet points as numbers make it easy to address the issues.
This is likely due to the use of
This appears to be an issue with activity recreation. While this is supposed to be taken care of by the appcompat library, it wasn't. So, I have to find another way instead.
Added.
Not sure why it happened. I'm unable to reproduce this right now. I'll fix it if I can.
I'm guessing you're not familiar with Material Design. Visit https://m3.material.io/ to get a better idea. The title of the PR says material design. So, addition of navigation components from M3 library should be expected. But, I can disable the label like it was before. But modern phones have a large vertical space, and a lot of apps use the same
Yes. But this feature is only enabled for WebViews that support it. “most dictionaries already do come with built-in dark theme” is a wrong assumption since
It doesn't break things for dictionaries that do not require JS, and all of my dictionaries do not require any JS. There are a few reasons:
The function is disabled by default with a description. So, it should be enabled by only those who are like me (and there are a lot of F-Droid users who would agree with me).
You can disable it if you want. But to be quite frank, I know many people who care about storage space. For example, some people refrained from downloading Openreads after it migrated to Flutter which increased the file size by 8 folds. I have replaced some apps by creating
|
Dark mode issues should be fixed now.
I was able to reproduce an issue where altering the configuration of the app (orientation, locale, dark mode, etc.) caused this issue which I've now fixed. I don't if it's the same issue. |
Now, only this issue remains, it seems. |
Modern phones are also narrow, so when you hold them the other way they actually have very little vertical space. Nobody is arguing against using standard components, but they can still be used with different options. In addition to using more vertical space, label appearing only for active button makes UI look jumpy. Take a look at, say Google's Play Store or Maps - nav bar at the bottom, all the labels are on all the time.
Also, the name of the screen was displayed in the subtitle. Could be just the title, showing name of the app itself is probably not very interesting.
It's not an assumption. wikipedia/wiktionary, gcide, wordnet, freedict - all do. You're right in that there is no standard prescribed by slob. Slob is a binary storage format and doesn't mandate how applications interpret the content or tags. applications are free to make up their own conventions. This application happens to support alternative style sheets and many dictionary converters choose to include alternative style this way.
total hack, agreed :) served users pretty well though
Supporting dark appearance is not the point though. The point is that dictionary itself can come with multiple appearances. Injecting css using JS is also used for user styles.
Who would that be? :)
Don't get me wrong - automatic dark theme is cool, the way it interacts with the existing style selection feature is not good. What if instead of switch in prefs it would be another option in
It is pointless to disable Javascript for dictionaries that simple do not include any.
Can you elaborate? What's the hypothetical attack scenario here? And how disabling JS in this application is related to other applications?
This is not a web browser though. Users do not log in to web sites withing this webview, do not open external links, do not fill forms.
I am not sure I understand what you are talking about .
Aren't libraries already minified?
Last release .apk is 3.31MB, without minification. How big is release apk for your version without minification? |
As said above, slob-the-binary-format does not dictate how applications use tags. This application makes up some conventions.
That is not the assumption here at all. URI is "universal resource identifier", not a URL (universal resource locator), although URLs are also URIs.
Is it? Maybe so, but what's in this PR ain't it. A good start would be to articulate what problem exactly are we trying to solve with this and then offer a solution in a separate PR. |
In that case, using Material Design is pointless because it adds spaces everywhere. For example, the lists consume almost twice the space than it used to. So, with this argument, it can be concluded that the entire UI design is faulty and inaccessible, thereby, not mergeable. However, in my phone, the old tabbed UI consumed about 8 mm and the new navigation view consumes about 13 mm. How a 5 mm difference makes such difference does not make any sense to me.
Unfortunately, I don't use those apps. But if you want the labels to be displayed all the time, that can be arranged. It's not a big of a deal either.
I see. I assumed this to be a client capable of parsing |
I like the new design and switched to that apk already (thanks for compiling, @sklart ). |
Whilst you may be correct with your technical analysis, I still like the approach and the design.
I never understood why Google wants me to put data into my phone on the top of the screen. Usually I am holding and using my phone vertically. Using the apps with my thumbs is impossible as they do not reach the top of the screen.
Having said this, I might use a smaller phone, but then I can not read the screen anymore.
Using the phone with the inputs on the buttom of the screen (above the keyboard, if switched on) makes way more sense to me.
Probably there is a way outside Material design or the downsides of Material design may be tweaked...
Thank you for your approach and efforts
Markus
________________________________
From: Muntashir Al-Islam ***@***.***>
Sent: Thursday, April 6, 2023 17:53
To: itkach/aard2-android
Cc: MHBraun; Comment
Subject: Re: [itkach/aard2-android] Use a more modern material-designed UI (PR #154)
Modern phones are also narrow, so when you hold them the other way they actually have very little vertical space.
In that case, using Material Design is pointless because it adds spaces everywhere. For example, the lists consume almost twice the space than it used to. So, with this argument, it can be concluded that the entire UI design is faulty and inaccessible, thereby, not mergeable. However, in my phone, the old tabbed UI consumed about 8 mm and the new navigation view consumes about 13 mm. How a 5 mm difference makes such difference does not make any sense to me.
In addition to using more vertical space, label appearing only for active button makes UI look jumpy. Take a look at, say Google's Play Store or Maps - nav bar at the bottom, all the labels are on all the time.
Unfortunately, I don't use those apps. But if you want the labels to be displayed all the time, that can be arranged. It's not a big of a deal either.
It's not an assumption. wikipedia/wiktionary, gcide, wordnet, freedict - all do. You're right in that there is no standard prescribed by slob. Slob is a binary storage format and doesn't mandate how applications interpret the content or tags. applications are free to make up their own conventions. This application happens to support alternative style sheets and many dictionary converters choose to include alternative style this way.
As said above, slob-the-binary-format does not dictate how applications use tags. This application makes up some conventions. label tag is another such convention. If these tags are not present, the app still works (sans the features enabled by these tags) and is still able to use dictionaries.
That is not the assumption here at all. URI is "universal resource identifier", not a URL (universal resource locator), although URLs are also URIs. uri is simply a marker used to identify related content, indicates same "logical" dictionary if you will. This is not just for "versions" (well, not really for versions) , this is how multi-volume dictionaries are tied together and how additional (optional) content may be provided (e.g. images).
I see. I assumed this to be a client capable of parsing slob where slob itself is the standard. Based on that assumption, I basically used the app to replace other apps that simply display contents stored in a database, in order to reduce the number of apps I use in my low end phone, and thought that it would be amusing if I can polish it a bit by contributing to the app. But, from what you said, it appears that my assumption was wrong, and I mistook it for something that it isn't. So, probably, this PR should be closed because all my work are based on that single assumption. It's obvious that you didn't like the changes, and the audiences may not actually prefer this scenario.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I am with you there, Markus, thanks for pointing that, me too I always use my phone always portrait. I even programmed buttons at the bottom to better reach it, in a little (Tasker) script-app I made ;) |
@sklart Thank a lot sklart :) |
Thank you
Markus
________________________________
From: Скляров Артем ***@***.***>
Sent: Wednesday, April 12, 2023 06:28
To: itkach/aard2-android
Cc: MHBraun; Comment
Subject: Re: [itkach/aard2-android] Use a more modern material-designed UI (PR #154)
Or you do it again, @sklart ?
Compliled (d3a3e41). Can try
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Is there any progress on merging these changes? |
Also closes #117, #136.