Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Fix glyph margin in win11light
This comment has been minimized.
This comment has been minimized.
🛠️ Changes
💬 Notes
|
There was a problem hiding this comment.
Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.
Files not reviewed (4)
- Flow.Launcher/Languages/en.xaml: Language not supported
- Flow.Launcher/ResultListBox.xaml: Language not supported
- Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml: Language not supported
- Flow.Launcher/Themes/Win11Light.xaml: Language not supported
Comments suppressed due to low confidence (3)
Flow.Launcher/ViewModel/MainViewModel.cs:1211
- Changing the global query check from an explicit value (GlobalPluginWildcardSign) to a string null/empty check may alter query classification. Please verify that this condition correctly distinguishes global queries without affecting intended local queries.
if (string.IsNullOrEmpty(query.ActionKeyword))
Flow.Launcher/ViewModel/ResultViewModel.cs:127
- [nitpick] The new ShowBadge property uses a global query determination (IsGlobalQuery) and badge settings to decide visibility. Confirm that this logic aligns with user expectations and that the conditions correctly reflect when badges should be shown.
public Visibility ShowBadge
Flow.Launcher/Plugin/Result.cs:191
- [nitpick] Updating both IcoPath and BadgeIcoPath when PluginDirectory is set ensures absolute paths for icon loading, but double-check that this behavior does not unintentionally override custom paths previously set.
PluginDirectory setter updating IcoPath and BadgeIcoPath
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
Flow.Launcher/Converters/BadgePositionConverter.cs (1)
1-32: Consider improving constant handling and simplifying conditional logic.The converter computes badge positions using hard-coded constants (8 and 2) which would benefit from explicit naming for clarity and maintainability. Additionally, the identical logic for both X-Offset and Y-Offset parameters (1 and 2) suggests potential for simplification.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is double actualWidth && parameter is string param) { - double offset = actualWidth / 2 - 8; + const double BadgeRadius = 8; + const double AdditionalOffset = 2; + double offset = actualWidth / 2 - BadgeRadius; - if (param == "1") // X-Offset - { - return offset + 2; - } - else if (param == "2") // Y-Offset - { - return offset + 2; - } + if (param == "1" || param == "2") // X-Offset or Y-Offset + { + return offset + AdditionalOffset; + } } return 0.0; }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
Flow.Launcher/Converters/BadgePositionConverter.cs(1 hunks)Flow.Launcher/Converters/SizeRatioConverter.cs(1 hunks)Flow.Launcher/ResultListBox.xaml(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- Flow.Launcher/ResultListBox.xaml
🔇 Additional comments (1)
Flow.Launcher/Converters/SizeRatioConverter.cs (1)
1-27: Great implementation for size scaling with consistent culture handling.The converter properly handles culture-independent parsing and has good error handling. The implementation will correctly scale dimensions based on the provided ratio parameter.
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Copilot reviewed 7 out of 11 changed files in this pull request and generated no comments.
Files not reviewed (4)
- Flow.Launcher/Languages/en.xaml: Language not supported
- Flow.Launcher/ResultListBox.xaml: Language not supported
- Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml: Language not supported
- Flow.Launcher/Themes/Win11Light.xaml: Language not supported
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. If the flagged items are 🤯 false positivesIf items relate to a ...
|



What's the PR
BadgeIcoPathstring &BadgeIconicon delegate &ShowBadgebool property inResultclass so that plugins can change the results of their badges.MainViewModel. (if (query.ActionKeyword == Plugin.Query.GlobalPluginWildcardSign))Related #2721. Close #2517.
Test