-
Notifications
You must be signed in to change notification settings - Fork 190
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
Sliding sidebar #916
base: develop
Are you sure you want to change the base?
Sliding sidebar #916
Conversation
The code overall looks good with a few nits. Test doesn't link on OS X because force_redraw isn't a thing on that platform right now. Reviewed 6 of 11 files at r1, 6 of 6 files at r2. src/chrono.c, line 25 at r2 (raw file):
Should chrono really be doing UI stuff? Isn't this the job of the callback function if it's needed? src/devices.h, line 12 at r2 (raw file):
You can delete this. src/ui.c, line 49 at r2 (raw file):
Remove this. src/ui.c, line 53 at r2 (raw file):
Comment isn't needed because of the src/layout/sidebar.h, line 4 at r2 (raw file):
This file doesn't use Comments from Reviewable |
Oh, and (optionally) the commit history could do with some cleanup if you feel like it. |
Review status: 6 of 15 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. src/chrono.c, line 25 at r2 (raw file): Previously, robinlinden (Robin Lindén) wrote…
I changed it to use src/ui.c, line 53 at r2 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. src/devices.h, line 12 at r2 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. src/layout/sidebar.h, line 4 at r2 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. Comments from Reviewable |
Reviewed 11 of 11 files at r3, 4 of 5 files at r4. src/ui.c, line 638 at r4 (raw file):
Why was this change made? Do Comments from Reviewable |
Review status: 14 of 15 files reviewed at latest revision, 2 unresolved discussions. src/ui.c, line 49 at r2 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. src/ui.c, line 638 at r4 (raw file): Previously, robinlinden (Robin Lindén) wrote…
I did this because it wasn't working everytime i tried to get the sidebar to slide but i just reverted it and tried and it seemed to be working everytime. I'll revert this. Comments from Reviewable |
Reviewed 1 of 1 files at r5. Comments from Reviewable |
Reviewed 1 of 11 files at r3, 10 of 10 files at r6. CMakeLists.txt, line 248 at r6 (raw file):
This change doesn't belong in this PR. src/flist.c, line 178 at r6 (raw file):
Kill this line. src/layout/settings.c, line 701 at r6 (raw file):
It doesn't look like any changes in this PR would affect which headers this file needs. Comments from Reviewable |
Review status: 12 of 15 files reviewed at latest revision, 3 unresolved discussions. CMakeLists.txt, line 248 at r6 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. src/flist.c, line 178 at r6 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. src/layout/settings.c, line 701 at r6 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. Comments from Reviewable |
Reviewed 3 of 3 files at r7. src/layout/settings.c, line 701 at r6 (raw file): Previously, endoffile78 (Endoffile) wrote…
Is the other header added required? Because there are no changes to this file aside from adding the two headers. Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/layout/settings.c, line 701 at r6 (raw file): Previously, robinlinden (Robin Lindén) wrote…
It doesn't look like it's needed I don't know why it was added. I removed it. Comments from Reviewable |
Reviewed 5 of 11 files at r3, 7 of 10 files at r6, 2 of 3 files at r7. src/flist.c, line 171 at r8 (raw file):
Maybe introduce some constants for this one and one below? Comments from Reviewable |
I tested this on Windows for a bit: |
Reviewed 1 of 11 files at r1, 1 of 11 files at r3, 1 of 5 files at r4. src/ui.c, line 32 at r4 (raw file):
This scope should be reduced to inside src/windows/drawing.c, line 17 at r9 (raw file):
= {0}; src/windows/drawing.c, line 27 at r9 (raw file):
why isn't this >= BM_ENDMARKER. IIRC endmarker isn't a SVG we're creating; thus, we would never need to draw endmarker? See also why we're using END_MARKER +1 we shouldn't need to add 1 to the dummy enum that signals the end number of the enumerated list. Comments from Reviewable |
Review status: 14 of 15 files reviewed at latest revision, 6 unresolved discussions, some commit checks broke. src/windows/drawing.c, line 53 at r9 (raw file):
windows is fucky, set the value == NULL src/windows/drawing.c, line 54 at r9 (raw file):
does this need to be void? Comments from Reviewable |
Review status: 13 of 16 files reviewed at latest revision, 6 unresolved discussions. src/ui.c, line 32 at r4 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
I made it global so memory does'nt have to be allocated everytime the user double clicks. src/windows/drawing.c, line 17 at r9 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. src/windows/drawing.c, line 27 at r9 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Fixed. I don't know why the + 1 is there, src/windows/drawing.c, line 53 at r9 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. src/windows/drawing.c, line 54 at r9 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
The function is expecting Comments from Reviewable |
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.
even if hidden, if you click on that place where the button was supposed to be, the settings menu still brings up.
Problems that need to be fixed:
Multiple threads are started after a double clickThe sidebar no longer responds to clicksThis change is