-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Lightbulb header accessibility when selected/focused #24552
Merged
dpoeschl
merged 5 commits into
dotnet:dev15.6.x
from
dpoeschl:lightbulbSelectedAccessibility
Feb 6, 2018
+57
−71
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
418b837
Theme selected Runs in the LightBulb
dpoeschl c011f0a
Convert C# to XAML
dpoeschl 0f8ddb5
Pick a HC color for the link when selected.
dpoeschl d35d1fd
Underline the hyperlink when focused (instead of the focus visual)
dpoeschl cff110b
Small PR review fixes
dpoeschl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Convert C# to XAML
This also lets the colors change appropriately when the theme is changed.
- Loading branch information
commit c011f0a6916d42823d000423fda22f2902643b68
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,21 @@ | |
</DataTrigger> | ||
</Style.Triggers> | ||
</Style> | ||
<Style x:Key="PreviewPaneHyperlinkStyle" TargetType="Hyperlink"> | ||
<Setter Property="Foreground" Value="{DynamicResource {x:Static vsui:EnvironmentColors.ControlLinkTextBrushKey}}" /> | ||
<Setter Property="TextDecorations" Value="{x:Null}" /> | ||
<Style.Triggers> | ||
<Trigger Property="IsMouseOver" Value="True"> | ||
<Setter Property="Foreground" Value="{DynamicResource {x:Static vsui:EnvironmentColors.ControlLinkTextHoverBrushKey}}" /> | ||
</Trigger> | ||
<Trigger Property="IsEnabled" Value="False"> | ||
<Setter Property="Foreground" Value="{DynamicResource {x:Static vsui:EnvironmentColors.PanelHyperlinkDisabledBrushKey}}" /> | ||
</Trigger> | ||
<Trigger Property="IsEnabled" Value="True"> | ||
<Setter Property="Cursor" Value="Hand" /> | ||
</Trigger> | ||
</Style.Triggers> | ||
</Style> | ||
</UserControl.Resources> | ||
<DockPanel MinWidth="400"> | ||
<StackPanel Name="HeaderStackPanel" DockPanel.Dock="Top" Visibility="Collapsed" | ||
|
@@ -86,7 +101,10 @@ | |
Checked="ExpanderToggleButton_CheckedChanged" Unchecked="ExpanderToggleButton_CheckedChanged"/> | ||
<Border Name="SeverityIconBorder" Height="16" Width="16" Margin="-3,0,0,-2"/> | ||
<TextBlock Name="IdTextBlock" Margin="2,0"> | ||
<Hyperlink Name="IdHyperlink" IsEnabled="False" RequestNavigate="LearnMoreHyperlink_RequestNavigate"/> | ||
<Hyperlink Name="IdHyperlink" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trailing whitespace. |
||
IsEnabled="False" | ||
RequestNavigate="LearnMoreHyperlink_RequestNavigate" | ||
Style="{StaticResource PreviewPaneHyperlinkStyle}"/> | ||
</TextBlock> | ||
<Run Name="TitleRun" Style="{StaticResource PreviewPaneRunStyle}"/> | ||
</TextBlock> | ||
|
@@ -106,7 +124,10 @@ | |
<TextBlock Name="LearnMoreTextBlock" DockPanel.Dock="Bottom" TextAlignment="Right" Margin="3,0,3,3" Visibility="Collapsed" | ||
FontFamily="{DynamicResource {x:Static vs:VsFonts.EnvironmentFontFamilyKey}}" | ||
FontSize="{DynamicResource {x:Static vs:VsFonts.EnvironmentFontSizeKey}}"> | ||
<Hyperlink Name="LearnMoreHyperlink" IsEnabled="False" RequestNavigate="LearnMoreHyperlink_RequestNavigate"/> | ||
<Hyperlink Name="LearnMoreHyperlink" | ||
IsEnabled="False" | ||
RequestNavigate="LearnMoreHyperlink_RequestNavigate" | ||
Style="{StaticResource PreviewPaneHyperlinkStyle}"/> | ||
</TextBlock> | ||
</DockPanel> | ||
<Separator Name="HeaderSeparator" Margin="0" Visibility="Collapsed"/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 0 additions & 65 deletions
65
src/VisualStudio/Core/Def/Implementation/Utilities/HyperlinkStyleHelper.cs
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Some of these may be redundant or useless, but they're a direct port from C# and I didn't want to make even more changes here.