You are not logged in.
I'm creating a custom color preset theme in /usr/share/xfce4/terminal/colorschemes using another theme as a template. What I cannot figure out is how to specify a text selection color as a background color rather than as the text color itself.
For example, my Text Color is black (#000000) and I set the Text Selection Color to black (#000000) with a blue background (#99C1F1). This can be done on the Terminal Preferences menu. However, I cannot get this to work in the custom theme file. I have the following:
[Scheme]
Name=CJSA #1 Theme
ColorForeground=#000000
ColorBackground=#fffcf8
ColorPalette=#000000;#aa0000;#44aa44;#aa5500;#0039aa;#aa22aa;#1a92aa;#aaaaaa;#888888;#ff8787;#4ce64c;#ded82c;#295fcc;#cc58cc;#4ccce6;#eeeeee
ColorCursor=#0f499
ColorSelection=#00000099c1f1
ColorSelectionUseDefault=FALSE
ColorBold=#344f84
ColorBoldUseDefault=FALSE
TabActivityColor=#cdab8f
I assumed that when two colors were specified as in ColorSelection=#00000099c1f1, that this would represent the two colors for the setting, but when this profile gets loaded, the Text selection foreground color gets set to #204ac1, a deep blue color with the second background color unused. I can manually reset these two colors but I cannot determine what needs to be written to the theme file to get them to load.
Can someone indicate how to properly writhe the theme file?
Also, these terminal preferences are being remembered, but the ~/.config/xfce4/terminal/terminalrc never changes. Where are these settings being stored? If I could look at them I could likely answer my own questions.
Thanks.
Added later 03 min 08 s:
Sorry, I forgot to specify that this is on Xubuntu 24.04.1
46-> xfce4-terminal --version
xfce4-terminal 1.1.3 (Xfce 4.18)
Offline
As of xfce4-terminal 1.1.0, settings are now stored in xfconf. Use the "Settings Editor" to view the xfce4-terminal channel, or you can use xfconf-query to change the settings on the fly.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
ToZ, it's great to know that the xfce4 parameters are now stored in xfconf. I don't know why i didn't know this earlier. This solved my problem except for one bit of confusion. Most of the color specifications are expressed in simple 6-digit hex, but when I have set the selection color to #000000 (to match my text color) and the selection background to #99c1F1, when I look in xfconf, the values are represented by these 12-digit strings rather than the normal 6-digits:
color-selection: #000000000000
color-selection-background: #9999c1c0f1f1
What is this representation and why are the hex values (almost) duplicated: 99 -> 9999, c1 -> c1c0 (?), f1 -> f1f1.
I copied these 12-digit numbers into my color profile and they work. I just don't understand what is happening here.
Offline
I remember reading somewhere that the 12-digit codes support more colors. Its something that GTK/GDK supports and xfce4-terminal uses. Here is an Xlib mention that talks about bit size of color codes.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 535.5 KiB (Peak: 536.34 KiB) ]