Theme and Icons #260

Merged
mmarif merged 15 commits from light-theme into master 2020-03-08 13:52:34 +00:00
Owner

Will close #249 and #250

Will close #249 and #250
mmarif added this to the 2.4.0 milestone 2020-01-29 14:50:51 +00:00
mmarif added the
Feature
UI/UX
labels 2020-01-29 14:50:51 +00:00
mmarif self-assigned this 2020-01-29 14:50:51 +00:00
mmarif changed title from [WIP] Theme and Icons to Theme and Icons 2020-03-06 13:47:38 +00:00
mmarif added the
LGTM-need
label 2020-03-06 13:47:52 +00:00
Member

I'll have a look :)

I'll have a look :)
6543 started working 2020-03-06 18:36:08 +00:00
6543 reviewed 2020-03-06 18:48:52 +00:00
Dismissed
@ -16,1 +17,4 @@
final TinyDB tinyDb = new TinyDB(getApplicationContext());
if(tinyDb.getInt("themeId") == 0) {

can you test for == 1 and else set default theme?

can you test for == 1 and else set default theme?
Author
Owner

Yes, that will work too.

Yes, that will work too.
6543 reviewed 2020-03-06 19:02:57 +00:00
Dismissed
6543 left a comment
Member

one nit, a question

one nit, a question
@ -113,6 +114,16 @@ public class RepoStargazersAdapter extends BaseAdapter {
viewHolder.memberName.setTypeface(myTypeface);
}
if(tinyDb.getInt("themeId") == 0) { // dark

same as first comment - why not make if (is light) [else if (is other theme - not here jet)] else default -> dark theme

same as first comment - why not make if (is light) [else if (is other theme - not here jet)] else default -> dark theme
Author
Owner

Yup, you are right.

Yup, you are right.
@ -1,4 +1,4 @@
<vector android:height="24dp" android:tint="#FFFFFF"
<vector android:height="24dp" android:tint="#368f73"

would be nice if this would be a in the theme config too - but dont know how hard this is to implement ...

would be nice if this would be a in the theme config too - but dont know how hard this is to implement ...
Author
Owner

Not sure how hard. Haven't researched on this. But for now the same green color icons matches both themes. Will see if we have more themes later on.

Not sure how hard. Haven't researched on this. But for now the same green color icons matches both themes. Will see if we have more themes later on.
Author
Owner

Just tried with custom attr and it works. But for now we will keep it as we can improve the themes slowly. Also this PR intended job is done and is very big already.

Just tried with custom attr and it works. But for now we will keep it as we can improve the themes slowly. Also this PR intended job is done and is very big already.

yes have same opinion but nice that is is doable - I'll create an issue witch links to this comments so we have a record of this :)

yes have same opinion but nice that is is doable - I'll create an issue witch links to this comments so we have a record of this :)

-> #271

-> #271
6543 stopped working 2020-03-06 19:03:08 +00:00
27min
Author
Owner

Ready for final review. :)

Ready for final review. :)
Member

Cant view diff with GitNex I'll have to wait tomoroww to look at the pull via PC

--> GitNex crash because of to big diff, can we ad something like paggination?

Cant view diff with GitNex I'll have to wait tomoroww to look at the pull via PC --> GitNex crash because of to big diff, can we ad something like paggination?
Author
Owner

GitNex crash because of to big diff, can we ad something like paggination?

Currently there is no API for it so I am rendering it from web. I know it is not best at this time and may have problems. But with few files it works. With PR this big it was going to crash/stop work etc.

Room of improvement are very minimal in the current imeplementation tbh. I will leave it as is except fix bugs and wait for the API to be available at later times to have a better implementation of it.

> GitNex crash because of to big diff, can we ad something like paggination? Currently there is no API for it so I am rendering it from web. I know it is not best at this time and may have problems. But with few files it works. With PR this big it was going to crash/stop work etc. Room of improvement are very minimal in the current imeplementation tbh. I will leave it as is except fix bugs and wait for the API to be available at later times to have a better implementation of it.
Member

O didn't noticed there is an api issue, is there an issue open upstream?

O didn't noticed there is an api issue, is there an issue open upstream?
Author
Owner

Haven't looked around but did not come across so far.

Haven't looked around but did not come across so far.
6543 started working 2020-03-07 22:08:02 +00:00
6543 reviewed 2020-03-07 22:22:06 +00:00
Dismissed
@ -49,2 +50,4 @@
private PDFView pdfView;
private LinearLayout pdfViewFrame;
private byte[] decodedPdf;
private Boolean $nightMode;

why this variable start with $ ?

why this variable start with `$` ?
Author
Owner

Good catch. I was into PHP mode. :)

Good catch. I was into PHP mode. :)
6543 stopped working 2020-03-07 22:22:26 +00:00
14min 24s
6543 approved these changes 2020-03-08 13:32:34 +00:00
Dismissed
Member

php mode 😆 - I wonder it works!

I have tested it now - works as expected 👍

php mode :laughing: - I wonder it works! I have tested it now - works as expected :+1:
6543 added
LGTM-done
and removed
LGTM-need
labels 2020-03-08 13:42:08 +00:00
Author
Owner

I wonder it works!

Haha, java treats it as a character like others.

> I wonder it works! Haha, java treats it as a character like others.
Member

I'm fine with merging this :D

I'm fine with merging this :D
mmarif closed this pull request 2020-03-08 13:52:34 +00:00
mmarif deleted branch light-theme 2020-03-08 13:52:44 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
2 Participants
Total Time Spent: 41 minutes 24 seconds
6543
41 minutes 24 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#260
No description provided.