Skip to content

Update Notame logo#563

Merged
YukiMatsuzawa merged 1 commit intomasterfrom
update_NotameLogo
May 19, 2025
Merged

Update Notame logo#563
YukiMatsuzawa merged 1 commit intomasterfrom
update_NotameLogo

Conversation

@Bujee415
Copy link
Copy Markdown
Collaborator

No description provided.

@Bujee415 Bujee415 requested review from YukiMatsuzawa and Copilot May 19, 2025 01:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Replace the embedded Notame PNG with a new vector-based icon and hook it into the ribbon control.

  • Switch Notame button’s LargeImageSource from the PNG path to the new StaticResource Notame_is
  • Define a scalable Viewbox vector for Notame and a corresponding DrawingImage resource
  • Ensure the icon is available as a StaticResource for UI rendering

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
MsdialDataVisualizationTab.xaml Updated the Notame ribbon button to use the new vector resource key Notame_is
Icons.xaml Added <Viewbox x:Key="Notame"> and <DrawingImage x:Key="Notame_is"> entries defining the vector logo
Comments suppressed due to low confidence (1)

src/MSDIAL5/MsdialGuiApp/View/RibbonControl/MsdialDataVisualizationTab.xaml:49

  • Verify that Notame_is is merged into the same ResourceDictionary before this control loads, otherwise the StaticResource lookup will fail at runtime. You may need to add the Icons.xaml merge to App.xaml or the control’s local dictionaries.
<RibbonButton Label="Notame (two-parameter processing tool)" LargeImageSource="{StaticResource Notame_is}"

<DrawingImage.Drawing>
<GeometryDrawing>
<GeometryDrawing.Geometry>
<RectangleGeometry Rect="0,0,255,255"/>
Copy link

Copilot AI May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RectangleGeometry Rect="0,0,255,255" does not match the Viewbox’s 210×297 canvas dimensions, which may lead to clipping or improper scaling. Consider using a matching Rect (e.g., 0,0,210,297) or adjusting the VisualBrush alignment.

Suggested change
<RectangleGeometry Rect="0,0,255,255"/>
<RectangleGeometry Rect="0,0,210,297"/>

Copilot uses AI. Check for mistakes.
<PathGeometry x:Key="clipEmfPath1" Figures="M 52.781102 60.188976 L 118.52598 60.188976 L 118.52598 125.93386 L 52.781102 125.93386 z" FillRule="NonZero"/>
<PathGeometry x:Key="clipEmfPath1-6" Figures="M 81.486614 87.968504 L 147.2315 87.968504 L 147.2315 144.45354 L 81.486614 144.45354 z" FillRule="NonZero"/>
</Canvas.Resources>
<Canvas UseLayoutRounding="False" Width="66.122391" Height="74.950409">
Copy link

Copilot AI May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] There’s a deep hierarchy of nested Canvas elements with individual RenderTransform settings, which makes the XAML harder to maintain. Consider flattening transforms or using a single DrawingGroup to simplify the vector definition.

Copilot uses AI. Check for mistakes.
@YukiMatsuzawa YukiMatsuzawa merged commit 0bd3d72 into master May 19, 2025
9 checks passed
@YukiMatsuzawa YukiMatsuzawa deleted the update_NotameLogo branch May 19, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants