-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Feature: Added an action to collapse/expand the sidebar #16422
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
Conversation
|
Using the 4af2d59 commit as a template betrayed me in the localization strings department, heh. |
|
All checks passed. Kept it a draft PR in accordance with your rules.
— https://github.com/files-community/Files/blob/main/.github/CONTRIBUTING.md Once the issue is marked as ready for PR, I'll make it a PR ready for review. |
0x5bfa
left a comment
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.
Otherwise, LGTM.
However, note that this may be rejected after all because the linked issue is still marked as planning.
Co-authored-by: 0x5BFA <[email protected]>
Co-authored-by: 0x5BFA <[email protected]>
This reverts commit 7b14ee6.
|
Thanks for the suggestion. And as for…
That's why I'm keeping it a draft. 💁♂️ |
|
I think you misunderstood. |
I've tried these steps, and it doesn't look like anything changes. |
|
I'll see if I can build in CLI… |
|
Wait, you didn't even test the changes 😬 And as for portable builds, you can download the |
|
I left the PR a draft, remember? I did try the workflow artifact build under a sandbox but wasn't able to have it install. |
|
Installing versions of Files from different production channels would not affect other channels. |
The dev builds have a different package name so you can have both versions installed at the same time. |
No harm done, don't worry about it 🙂 |
|
Installed the artifact with Tested the action — it doesn't work. Files/src/Files.App/UserControls/Sidebar/SidebarView.xaml.cs Lines 193 to 205 in 39df64d
|
|
Erm, no. I did something stupid. P. S.Just spotted the typo — wasn't using the interface. |
|
Wait, wasn't there an interface..? 🤔 I need rest… |
|
Yeah, I'm definitely doing this wrong.
Maybe I need to expand the interface… Erm, the type isn't found… Namespace scope..? |
|
😂 |
|
@0x5bfa Well, that doesn't look like advice to me. |
|
Why wouldn't you like to install Visual Studio? |
|
Lets try to stay on topic |
0x5bfa
left a comment
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.
If you want advice.
|
Aight, let's try that. |
Based on `SidebarDisplayMode.Expanded`/`.Compact`. Co-authored-by: 0x5BFA <[email protected]>
|
|
ISidebarViewModel → SidebarViewModel. Co-authored-by: 0x5BFA <[email protected]>
Co-authored-by: 0x5BFA <[email protected]>
!IsOn Co-authored-by: 0x5BFA <[email protected]>
…ed to find the instance reference.
Added a
ToggleSidebaraction, imitating 4af2d59 as a template.Resolved / Related Issues
Steps used to test these changes
[Ctrl]+[Alt]+[S]as the default keybinding for ToggleSidebar.[Ctrl]+[Shift]+[P]).Not quite seeing how I could test this myself yet. Assuming that having imitated an equivalent commit closely should make this a relatively straightforward contribution nevertheless.
As for the callback contents, it seemed like there's three ways of doing this — through:
SidebarResizer_DoubleTapped. Was my initial plan.Files/src/Files.App/UserControls/Sidebar/SidebarView.xaml.cs
Line 193 in 39df64d
SidebarDisplayMode.Expanded/SidebarDisplayMode.Compact. Seemed abstracted away.Files/src/Files.App/UserControls/Sidebar/SidebarDisplayMode.cs
Line 9 in 39df64d
AppearanceSettingsService.IsSidebarOpen. Gone with this one.Files/src/Files.App/ViewModels/UserControls/SidebarViewModel.cs
Line 125 in 39df64d
Used the latter for this PR to closely match the reference commit.