Removing stroke from bar in XAML file
See original GitHub issueI realize this isn’t a support forum and that this is maybe beyond the scope of what is supposed to be discussed here, but I can’t find a better place to ask, so I hope it’s all right.
I’m trying to create a simple transparent theme for the top bar using white.xaml as a starting point. I am not a developer nor am I actually that familiar with the syntax, but I do know CSS and some HTML so I was able to do most of what I want by referencing the default theme and making a few changes.
There is a small gray stroke at the bottom of the bar that I wish to remove but I can’t parse exactly what style is controlling that or how to change it.
The file I currently have looks like this:
<?xml version="1.0" encoding="utf-8"?>
<ResourceDictionary xmlns="http://schemas.microsoft.com/netfx/2009/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Menu resources -->
<SolidColorBrush Color="#FFFFFFFF" x:Key="MenuHeaderForeground" />
<SolidColorBrush Color="#FFFFFFFF" x:Key="SysTrayExpanderColor" />
<!-- Image resources -->
<BitmapImage x:Key="MenuIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/cairoMenuDefault.png"></BitmapImage>
<BitmapImage x:Key="SearchIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/searchDefault.png"></BitmapImage>
<BitmapImage x:Key="ActionCenterIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/actionCenterDefault.png"></BitmapImage>
<BitmapImage x:Key="VolumeIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/volumeIconDefault.png"></BitmapImage>
<BitmapImage x:Key="VolumeLowIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/volumeLowIconDefault.png"></BitmapImage>
<BitmapImage x:Key="VolumeOffIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/volumeOffIconDefault.png"></BitmapImage>
<BitmapImage x:Key="VolumeMuteIcon" UriSource="pack://application:,,,/CairoDesktop;component/Resources/volumeMuteIconDefault.png"></BitmapImage>
<BitmapImage x:Key="WhiteBarBackground" UriSource="C:\Users\epatt\OneDrive\Pictures\bar\menuBarTransparent.png"></BitmapImage>
</ResourceDictionary>
The image is attached below. How can I achieve a transparent “stroke” so to speak?
Issue Analytics
- State:
- Created 5 years ago
- Comments:13
https://i.imgur.com/W2W1yMD.png
Thank you, it works great. 😃
This has been released.