Change background and border color

136 views
Skip to first unread message

David Polonskiy

unread,
Jan 7, 2024, 9:40:11 PM1/7/24
to OneCommander
Is it possible to change background and border colors?
Screenshot attached.

Thanks.
ScreenBGBorderColor.png

OneCommander Support

unread,
Jan 7, 2024, 9:41:40 PM1/7/24
to OneCommander
Only by editing theme files from About>Settings location
Open themes folder, and check themes, duplicate the one you like and modify a copy. You will need some xaml and hex color knowledge to be able to edit those

Message has been deleted

David Polonskiy

unread,
Jan 8, 2024, 6:48:26 PM1/8/24
to OneCommander
I changed background color, but I can't find parameter that change border color.
Could you please specify name of this parameter?
Or maybe possible to hide or disable this border?

понедельник, 8 января 2024 г. в 04:41:40 UTC+2, OneCommander Support:

OneCommander Support

unread,
Jan 11, 2024, 1:47:44 AM1/11/24
to OneCommander
All keys have descriptive names:

<SolidColorBrush x:Key="WindowBorderBrush" Color="{m:DynamicColor SystemAccentColor}" />
<Thickness x:Key="WindowBorderThickness">1</Thickness>

Color="Transparent"

David Polonskiy

unread,
Jan 14, 2024, 4:23:30 AM1/14/24
to OneCommander
I don't quite understand what I should do. Which parameter should I change and to what? Can you please clarify?

четверг, 11 января 2024 г. в 08:47:44 UTC+2, OneCommander Support:

OneCommander Support

unread,
Jan 14, 2024, 3:10:36 PM1/14/24
to OneCommander
Did you make a copy of a theme, edited the xaml file from there and changed value for those two keys?

David Polonskiy

unread,
Jan 14, 2024, 6:28:13 PM1/14/24
to OneCommander
Yes, I copied the theme xaml file, but what exactly should I change? I have the same parameters that you wrote. What should I change?

Thats my code:
<SolidColorBrush x:Key="WindowBorderBrush" Color="{m:DynamicColor SystemAccentColor}" />
    <Thickness x:Key="WindowBorderThickness">1</Thickness>

Where I need to put Color="Transparent"?
What should the final parameters code look like?
воскресенье, 14 января 2024 г. в 22:10:36 UTC+2, OneCommander Support:

OneCommander Support

unread,
Jan 14, 2024, 7:33:35 PM1/14/24
to OneCommander
<SolidColorBrush x:Key="WindowBorderBrush" Color="Transparent" />
<Thickness x:Key="WindowBorderThickness">0</Thickness>

The second one is probably not necessary. 
Save, select new theme in settings dialog

David Polonskiy

unread,
Jan 15, 2024, 7:53:40 AM1/15/24
to OneCommander
I tried this. It's not working. The border is still there.

понедельник, 15 января 2024 г. в 02:33:35 UTC+2, OneCommander Support:

OneCommander Support

unread,
Jan 15, 2024, 11:48:58 AM1/15/24
to OneCommander
It could be system added border. I can look into it closely when I circle back to making a custom window, right now OC relies on 2 different libraries for drawing the window so it would take time to analyze those projects and find what is happening. At some point I will make a custom window but it is not a high priority feature for me.

David Polonskiy

unread,
Jan 15, 2024, 4:54:24 PM1/15/24
to OneCommander
Got it. But still hope for it. Thanks.

понедельник, 15 января 2024 г. в 18:48:58 UTC+2, OneCommander Support:
Reply all
Reply to author
Forward
0 new messages