Page 1 of 1

Color of Breadcrumb bar 'Active Back'

Posted: 16 Aug 2023 17:28
by arazi89
Unless it already exists, it would be nice to have a way to easily set with scripting the TOOLS>CONFIGURATION>COLORS AND STYLES>COLORS>Breadcrumb Bar: Active Back

What I am looking for is to be able to set this to a different color while 'Sticky Selection' is active, and then back to "normal" when 'Sticky Selection' is toggled back off. Mostly as a visual reminder to turn it off after I have toggled it on. As an alternative, changing the entire background color of the active pane while 'Sticky Selection' is active (and then back to "normal" after 'Sticky Selection' is off) would also work just as well.

If that is what interfacecolors("EC8F32|C07532"); //New York City smoke mode does, then I could try that. (Or whatever variation of colors) To be honest, I am a little wary of interfacecolors() because while interfacecolors(""); //reset interface colors to Windows defaults exists, I am not even sure that I am still on "Windows default" after customizing some color settings and what I would want to "return to" would be whatever I currently have. And the command echo interfacecolors(); //show current custom interface colors does not tell me what I currently have since I have not activated a custom interface.

That is really why, back to the original request, a simple way to change just the background color of the active breadcrumb bar could be ideal for me.

I use dark mode, so I would just be changing the background to a different version of a dark color. And then back.

Thank you!

Re: Color of Breadcrumb bar 'Active Back'

Posted: 17 Aug 2023 16:54
by admin
Why so complicated? There is a toolbar button for Sticky Selection. When it's pressed, Sticky Selection is active.

Re: Color of Breadcrumb bar 'Active Back'

Posted: 17 Aug 2023 22:03
by arazi89
admin wrote: 17 Aug 2023 16:54 Why so complicated? There is a toolbar button for Sticky Selection. When it's pressed, Sticky Selection is active.
I apologize for the confusion and complication. My original request is not primarily about 'Sticky Selection'. I mentioned 'Sticky Selection' as a demonstration of how I would make use of the original request.

The request: "Unless it already exists, it would be nice to have a way to easily set with scripting the TOOLS>CONFIGURATION>COLORS AND STYLES>COLORS>Breadcrumb Bar: Active Back"

The ability to change the background color of the active breadcrumb bar.

Re: Color of Breadcrumb bar 'Active Back'

Posted: 18 Aug 2023 08:56
by admin
There are 8 breadcrumb colors, and they are all more or less interrelated, so it only makes sense to open them all to scripting. IMO, that's a bit much for now. I don't really see the need for it. Convince me.

Re: Color of Breadcrumb bar 'Active Back'

Posted: 18 Aug 2023 17:14
by arazi89
admin wrote: 18 Aug 2023 08:56 There are 8 breadcrumb colors, and they are all more or less interrelated, so it only makes sense to open them all to scripting. IMO, that's a bit much for now. I don't really see the need for it. Convince me.
A bit much, how? In terms of features? This is a feature-rich program. And this one would be useful.

Here is a screenshot of my XYplorer window:
Image

As you see, I use color coding for everything. From filenames to the breadcrumb bar + active tab. Via colors, it should be instantly obvious which is the active pane and active tab versus the inactive pane. GREEN means active, RED means inactive. And those colors toggle back and forth depending on which pane is active at the time.

I also use color-coded circles in a custom column to show which drive name a file is located on. Or in this example on the right-side pane, which drive name a shortcut points to.

You already know the usefulness of color coding which is why you made it extensively possible to use colors for filenames, and why you currently have color choices for inactive and active breadcrumbs bar available in Configuration. You just haven't extended that to scripting yet so it can be used dynamically.

COLOR COMMUNICATES INFORMATION. And as you see on my screenshot, the breadcrumb bars are big, bold, colorful real estate on the screen that can be used to communicate information. In an unmistakable way. Currently mine communicate active (GREEN) versus inactive (RED). My first use for dynamic color coding would be use (YELLOW) in the script I use to activate 'Sticky Selection' and then back to regular color in the script I use to de-activate 'Sticky Selection'. That way it is unmistakable whichever state 'Sticky Selection' is in. And when it needs to be turned off.

But once available, other communication could be delivered with color coding that screen real estate. The status of a copy operation, for example. Or the identity of the drive that is being used. Basically, anything that could be toggled at the beginning or end of a script-- or elsewise in scripting. That is a lot of valuable screen real estate. Its color can be put to use.

Thank you!

Re: Color of Breadcrumb bar 'Active Back'

Posted: 18 Aug 2023 17:20
by admin
Look:

Re: Color of Breadcrumb bar 'Active Back'

Posted: 18 Aug 2023 22:55
by arazi89
Thanks!

Here you go...
093551726w.jpg
093551726w.jpg (95.42 KiB) Viewed 1184 times

Re: Color of Breadcrumb bar 'Active Back'

Posted: 19 Aug 2023 08:31
by admin
Nice! Looks like you're really into file management. :tup:

(Ab)Using the color of breadcrumb bars as an indicator of something else is an interesting idea. I guess I'll add it to SC ifc (interfacecolors).

Re: Color of Breadcrumb bar 'Active Back'

Posted: 19 Aug 2023 16:22
by arazi89
admin wrote: 19 Aug 2023 08:31 Nice! Looks like you're really into file management. :tup:

(Ab)Using the color of breadcrumb bars as an indicator of something else is an interesting idea. I guess I'll add it to SC ifc (interfacecolors).
Thank you very much! It is a fairly unmistakable indicator. You can see it from across the room, even.

And photography forces an interest in file management because you routinely come home with a large number of new files to deal with. In particular, I spent half a day editing photos once only to realize that I had been working on back-up copies on a back-up drive (that technically were going to be overwritten by an automated process the next 2:30am). So I try to make it obvious to myself which drive I have open. With XYplorer I was able to put that color circle indicator (based on drive name) beside the filenames and that has already probably saved me from screwing up a few times. I love it.

Re: Color of Breadcrumb bar 'Active Back'

Posted: 19 Aug 2023 16:55
by admin
It's in the recent beta version. Did you already try it? --> viewtopic.php?p=213465#p213465

Re: Color of Breadcrumb bar 'Active Back'

Posted: 19 Aug 2023 17:25
by arazi89
admin wrote: 19 Aug 2023 16:55 It's in the recent beta version. Did you already try it? --> viewtopic.php?p=213465#p213465
Awesome!

I will try it this evening. That is perfect.
type: 3 = Breadcrumb Colors
Format: AT1,AB1,IT1,IB1,AT2,AB2,IT2,IB2 (A=Active,I=Inactive,T=Text,B=Back,1=Pane1,2=Pane2)
Each color in RRGGBB format.
Omitted values remain unchanged.
Empty: Reset the breadcrumb colors to factory defaults.
Missing: Just return the current breadcrumb colors.
return: Current breadcrumb colors.

Re: Color of Breadcrumb bar 'Active Back'

Posted: 20 Aug 2023 02:16
by arazi89
admin wrote: 19 Aug 2023 16:55 It's in the recent beta version. Did you already try it? --> viewtopic.php?p=213465#p213465
Just tried it.... works like a charm!

Here is the code:

Code: Select all

// ----------------------------------------------------------------------------------------------------------------------- 
// ----------------------------------------------------------------------------------------------------------------------- 
// 2023_08_19_185158
// Sticky selection
//
// Keyboard Hotkey: Alt+B
//
// Load "2023_07_10_YYY_Scripts.xys", "StickySelect"
//
"Sticky Select current item in list : StickySelect"
 $a =  get("#413");                                                // determine if 'Sticky Selection' state is currently active
 switch ($a) {
  case 0:                                                         // If Sticky Selection is not active then toggle it ON
		sel "+0",1,0 ;                                            // Select the current item if it is not actively selected
		#413;                                                     // Toggle Sticky Selection ON
		break;
  case 1:
		sel "+0",1,0 ;                                                  // Select the current item
		break;
  default: 
		break;
  }
 tab("backcolor", "F4CB0D");                                      // set tab backcolor to YELLOW
 tab("textcolor", "AA1111");                                      // set tab text to RED
 //
 //  AT1,AB1,IT1,IB1,AT2,AB2,IT2,IB2 (A=Active,I=Inactive,T=Text,B=Back,1=Pane1,2=Pane2)
 //
 interfacecolors(",F4CB0D,,,,F4CB0D,,", 3);         //modify the background colors of the breadcrumb bars (YELLOW)
 interfacecolors("AA1111,,,,AA1111,,,", 3);         //modify the text colors of the breadcrumb bars       (RED)
//
//
// ----------------------------------------------------------------------------------------------------------------------- 
//
//  *** Use Keyboard Hotkey: F1   to initiate a Copy of files between the two panes ***
//
// ----------------------------------------------------------------------------------------------------------------------- 
// 2023_08_19_191109
// Toggle Sticky Selection OFF and De-Select All files (clean slate)
//
// Keyboard Hotkey: Alt+N
//
// Load "2023_07_10_YYY_Scripts.xys", "UnSelStickOFF"
//
"De-Select All Files + Sticky Sel OFF : UnSelStickOFF"
 $a =  get("#413");                                                // determine if 'Sticky Selection' state is currently active
 switch ($a) {
  case 0:                                                         // If not currently active then do nothing
		break;
  case 1:													     // If it is currently active then...
		#413;                                                    // Toggle Sticky Selection OFF 
		break;
  default: 
		break;
  }
//
 sel  ;    		                                              // De-Select ALL items
 tab("backcolor");                                            // re-set tab color to normal
 tab("textcolor");                                            // re-set tab text color back to normal
 //
 //  Current 'normal' breadcrumb bar colors: Active text FFFFFF Active back 00A600 Inactive text FFFFFF Inactive back FF3C3C
 //  AT1,AB1,IT1,IB1,AT2,AB2,IT2,IB2 (A=Active,I=Inactive,T=Text,B=Back,1=Pane1,2=Pane2)
 //
 interfacecolors("FFFFFF,00A600,FFFFFF,FF3C3C,FFFFFF,00A600,FFFFFF,FF3C3C", 3); //re-set the colors of the breadcrumb bars back to 'normal'
 //
// ----------------------------------------------------------------------------------------------------------------------- 
// ----------------------------------------------------------------------------------------------------------------------- 

And here is a screenshot of that code in use:
2023-08-19_192345091wb.jpg
2023-08-19_192345091wb.jpg (839.08 KiB) Viewed 1119 times
When I am using the computer in an office or properly lit environment it may not matter much, but when I have the laptop out with me in the field and am trying to use it to copy files with broad daylight making the screen hard to see what I am doing (especially for trying to use the mouse, etc.) this is now an all-keyboard way to select multiple files and copy them over to the other pane. Even if I can't see the screen very well because of the (too bright) lighting I should still be able to make out what I am doing and not make too many mistakes trying to copy the files. All keyboard. No mouse.

THANK YOU!!

Re: Color of Breadcrumb bar 'Active Back'

Posted: 20 Aug 2023 08:37
by admin
I should promote it. XYplorer, your favorite outdoor file manager. :)