-
Notifications
You must be signed in to change notification settings - Fork 274
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
Multi-row functionality #928
Conversation
Remaining tasks
(Many were hot-fixed by replacing drag functionality with a settings option) |
Here's every taskbar with 2 rows: |
Hey, thanks, this is looking great so far! I am going to try to take a deeper look at this soon. |
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.
This is a great start! In addition to the items within the review comments, I noticed a few layout correctness issues:
- Within the
Toolbar
and theNotifyIconList
controls: TheWrapPanel
within should have itsOrientation
property changed toVertical
when the taskbar is in a horizontal orientation and has more than 1 row. It should remainHorizontal
otherwise. - The classic Start button should not stretch vertically, it should keep its height and be aligned to the top. The XP start buttons should also be top aligned.
- For the XP and newer themes, the clock should change to the extended format that is used when in a vertical orientation.
I didn't pixel peep so there may be some other minor issues to address as well, but let's see how it looks after these changes! :)
RetroBar/Themes/System.xaml
Outdated
<Setter Property="VerticalAlignment" | ||
Value="Center"/> |
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.
This isn't correct, the toolbars should keep their existing alignment. However, there is another related change that will need to be made for correctness, that I will comment separately on.
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.
Shouldn't tray icons be aligned at top as well, like quick launch?
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.
@1280px Yes, but that will require some more extensive theme changes.
9ffa015
to
8b30505
Compare
8b30505
to
35844b7
Compare
Very nice work. 1 thing that is missing is multirow functionality for the quicklaunch items, would that be possible to add? @Avid29 EDIT: |
RetroBar/Themes/Windows XP Blue.xaml
Outdated
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.
The clock alignment is off because of the margin on the Clock
style (line 1597). If you adjust this style and trigger in the same manner as ClockTemplateKey
that should take care of that issue.
RetroBar/Languages/English.xaml
Outdated
@@ -20,6 +20,15 @@ | |||
<s:String>Right</s:String> | |||
<s:String>Bottom</s:String> | |||
</x:Array> | |||
<s:String x:Key="rowcount_text">Row Count:</s:String> |
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.
Let's change this to Number of _rows:
RetroBar/PropertiesWindow.xaml
Outdated
@@ -203,6 +204,15 @@ | |||
SelectedIndex="{Binding Source={x:Static Settings:Settings.Instance}, Path=Edge, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource enumConverter}}" | |||
SelectionChanged="cboEdgeSelect_SelectionChanged" /> | |||
</DockPanel> | |||
<DockPanel IsEnabled="{Binding Source={x:Static Settings:Settings.Instance}, Path=Edge, Converter={StaticResource isHorizontalConverter}}"> | |||
<Label VerticalAlignment="Center" | |||
Target="{Binding ElementName=cboEdgeSelect}"> |
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.
The Target
of this Label
needs to be fixed to point to the rows ComboBox
.
The padding and alignment of the tray icons will need some changes in a few themes. There are a few other sizing changes that will need to be made anyway. I'm okay making those minor changes later.
I tested this and don't think it will do what we want, what are you looking to affect with this change? |
I haven't tested it yet, but I expect that if the number of items in the NotifyIconsList is not divisible by the number of rows the system clock side will have empty slots were items would be while the expected behavior is that they would fill in from that side. You'd also still expect the system icons (volume, network, and such) to be on the system clock side. |
If someone wants these I made Finnish translation, and 2 custom Windows 7 themes. These were made for Avid29 RetroBar_resizable_taskbar, Windows 7 Royale Noir (Vista theme base, Xp Royale Noir colors, Win7 startmenu): Translation and themes: |
@MKKNinetyTwo You can submit a translation through a separate pull request :) |
I know, but the translation has lines for "row count" etc that Avid29 added, which are not yet on the main repo, Some strings are only on Avid29 repo at the moment. So I need to wait until this pull request is accepted, or if Avid29 wants to add the translation to his own repo, it is fine too. |
Our behavior seems to match Windows XP already--the empty slots are on the clock side on both. |
Oh, never mind then |
"...You'd also still expect the system icons (volume, network, and such) to be on the system clock side..." empty blocks, volume and network are on the clock side, but "removable devices" is not on clock side on retrobar. I dont know how the "removable devices" is on win xp. |
Once the requested changes are made, I have a follow up patch to enable drag resizing: Screen.Recording.2024-11-02.at.11.14.48.PM.mov |
so the remaining changes are: vertical_alignment, rowcount_text, and label target of combo_box? btw, I noticed that the volume icon is not changing from muted to not-muted icon when clicked, I am not sure if it is retrobar bug or if it is happening only on the multirow version (running on windows 11). |
- Added drag resize - Added separate row size setting for themes - Fixes to theme tray metrics with multiple rows - Fixes to theme clock layout with multiple rows - Fixed Vista language bar alignment with multiple rows - Improved Vista and Royale-based theme backgrounds with multiple rows - Improved classic task/toolbar spacing with multiple rows - Addressed review comments
I pushed a slew of changes to this branch which adds the drag resize, as well as a bunch of minor theme improvements for multi-row. I believe this is at a point it can be merged, but would appreciate others testing :) |
Very nice. I made a PR for the Finnish translation if you want to add it: |
Resizable taskbar Finnish (Suomi) translation
@dremin Alright, I believe this should be ready! |
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.
Thanks for working on this, I appreciate it!
Still a work in progress, but here's some screenshots: