Skip to content
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

Drop shadow, input language, original/custom icons #1018

Open
JohnGlesby opened this issue Jan 12, 2025 · 1 comment
Open

Drop shadow, input language, original/custom icons #1018

JohnGlesby opened this issue Jan 12, 2025 · 1 comment

Comments

@JohnGlesby
Copy link

  1. The text could use some drop shadow. It's hard to read on some themes, especially when the taskbar is well below my direct line of sight. In the second image, my CoreTemp indicators are barely legible.
    drop shadow 2
    drop shadow

  2. The input language icon is there but clicking/double-clicking on it does nothing.

  3. Can we get the original theme-specific icons for the notification area such as volume control, battery, Internet access etc.? Or at least get the ability to install custom ones?

Thank you for this gorgeous software. Ever since I started using it, my stress levels and nihilistic thoughts have diminished. I am now wandering the meadows of digital bliss.

@xoascf
Copy link
Collaborator

xoascf commented Jan 12, 2025

  1. Since the themes are customizable, you can do this in a custom theme that inherits the theme you want to customize and tweak the same .xaml file (that you create in %LOCALAPPDATA%/RetroBar/Themes) with something like this:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:system="clr-namespace:System;assembly=mscorlib">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://siteoforigin:,,,/Themes/Windows XP Royale.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <Style TargetType="TextBlock"
           x:Key="TaskLabel"
           BasedOn="{StaticResource TaskLabel}">
        <Setter Property="ContentPresenter.Effect">
            <Setter.Value>
                <DropShadowEffect Color="Black" Direction="315" ShadowDepth="2" BlurRadius="4" Opacity="1" />
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="Image"
           x:Key="NotifyIcon"
           BasedOn="{StaticResource NotifyIcon}">
        <Setter Property="ContentPresenter.Effect">
            <Setter.Value>
                <DropShadowEffect Color="#785030" Direction="315" ShadowDepth="1" BlurRadius="2" Opacity="0.8" />
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
  1. For now, it just previews the current input language.
  2. Probably in a future version we could handle system and user/custom UUIDs to identify and try to get the current state for each notification icon (not sure if using regex would be the best approach though, as multiple languages may have different formatting in name or tooltip, maybe a hash comparison if the system still has the stock icons would work).

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

No branches or pull requests

2 participants