-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Progressbar in Mosaic View #8915
Conversation
1. Fixed bug that was force closing the keyboard. 2. Fixed key sizes. 3. Added appropriate alt label. 4. Rename Locale label for 'bn' from 'বাঙালি' to 'বাংলা'.
Tested on my Kobo:
|
We can definitely play with styling a little more. Can you please give me some screenshots. Emulators are not entirely faithful to the reality, right? |
You can just copy the single file that you are modifying on your device and see for yourself :) The good thing is that it doesn't overlap with the text at the bottom with our fake covers. Also, you might need to tweak the position or width depending on the cover size (large but not tall covers could get it distant from the cover bottom edge/border and tall but not large covers could get it overflowing the right edge (I have no such picture on my Kobo to test). |
I have to employ the same logic I used for x position to y position also. And yes, with no border-radius, same thickness and overlapping border might make this thing look great. |
@poire-z I've incorporated some of your UI feedback. Here's the result: However, I couldn't set the radius to 0. It makes |
-- if progress_widget then | ||
-- progress_widget:free() | ||
-- end |
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.
Why comment out this ?
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.
What happened is, if I try to resize emulator, this part actually throws an error saying free
is nil. So, I assumed free
is unavailable.
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.
Oh right :) it seems ProgressWidget doesn't have and need any :free().
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.
So, you can remove this commented out stuff.
Yep, dunno. May be you need some inner spacing (which I guess only radius provide), so it's noticable over a black bckground cover.
Possible margin_h=3 that you could reduce or make 0 or 1 ? There are other tweakable things: koreader/frontend/ui/widget/progresswidget.lua Lines 37 to 42 in eb34fbb
|
Tweaking |
-- if progress_widget then | ||
-- progress_widget:free() | ||
-- end |
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.
So, you can remove this commented out stuff.
@poire-z added the margin as you've suggested, and the settings also. For progress bar width issue, My current strategy is to take min of 60% of the container and cover image width. |
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.
Looks quite neat.
This PR implements a progressbar in Mosaic View.
This change is