XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Discuss and share scripts and script files...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by SkyFrontier »

Hi.

In the process of optimizing/bug-tracking the logic for producing auto/random/controlled themes, I gathered several of them. Some were just too good to ignore, some needed minor tweak, some still need fine tuning but the base is good enough to save time, very few are 'conceptual'. Plain trash, sometimes. Errors and duplicates removed*, here is a good collection so you may have something to play with when it comes to XY customization. I also included v1 themes (plus few additions) - they are the ones popping some basic intro screens.

This is a joint operation attempting to deliver the best of all worlds concerning theme management/creation, this time focusing on speed.

Easy:

1. Unpack the attached zip, move the whole folder under "<xyscripts>\Themes" - select the unpacked folder and use the following script, if you want to do it automatically:

Code: Select all

"move MegaPack to Theme folder|:fore"
   $tst = exists("<xyscripts>" . "\Themes");
   if("$tst" == "2") {   }
   elseif("$tst" != "2") { new ("<xyscripts>" . "\Themes", "dir"); }
   moveto "<xyscripts>" . "\Themes";
"go to current Theme File|:openwith"

   $tst1 = exists("<xydata>\z_XYstylEZ_CurMTheme.txt");
   IF ("$tst1" == "1") {   }
   ELSEIF ("$tst1" != "1") {
                           end 1, "It seems you haven't used the Mega Themes Loader first!<crlf>Please do so.";
                           }                     

   $th = readfile ("<xydata>\z_XYstylEZ_CurMTheme.txt");
   goto "$th";
2. use the attached MegaThemesLoader.xys > it'll pick a theme from the MegaPack and automatically apply it. Don't like the theme? Run the script again - it takes 3 or 4 runs to get something you like. Want to get rid of a theme? Then...

3. run the MegaThemesLoader_DeleteCurTheme.xys > the theme is flushed from your system, permanently. Alternatively you could move it somewhere else, but that's up to you. Ask for help, I'll be glad to answer.

The MegaThemesLoader contains the Smart Backup code, which periodically saves your xyini into "<xydata>\AutoBackup\[1-3]".

UDC+CKS are great to play with 2 and 3.

This is my last take on the Themes thing, although I mentioned some other complimentary tools which I may or may not develop-and-publish over time, but chances are heavily increased if one asks for them.

I'm amazed on how fun/productive this thing can be. Should've developed it years ago.

Excelsior!,

SkyFrontier.
________________
*A consistent rate of 10%-15% has being shown in these experiments; later methods were reducing those dupes but haven't played enough with them to guess a relevant percentage.
Attachments
MegaThemesLoader_DeleteOrFavTheme.xys
(1.28 KiB) Downloaded 502 times
MegaThemesLoader_DeleteCurTheme.xys
(548 Bytes) Downloaded 363 times
MegaThemesLoader.xys
(2.05 KiB) Downloaded 633 times
XYstylEZ_1170ThemesMegaPack.zip
(626.75 KiB) Downloaded 610 times
Last edited by SkyFrontier on 28 Mar 2014 23:44, edited 1 time in total.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by bdeshi »

:appl: :appl:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by klownboy »

Hi SkyFrontier, once again very nice. I second the :appl:
I did note an issue when you run the MegaThemesLoader_DeleteCurTheme.xys to delete a theme. If you run this script, the dialog "Are you sure you want to permanently delete this file?" comes up and if you elect no (i.e., you change your mind), you still get the following Deleted: echo message coming up even though the theme is NOT deleted.
Mega_deleted_cap.PNG
Mega_deleted_cap.PNG (32.83 KiB) Viewed 4858 times
I confirmed a number of times, the theme is not deleted which is as it should be, but that echo shouldn't display when you essentially want to cancel out by saying "NO". I confirmed that the z_XYstylEZ_CurMTheme.txt did exist in the <xydata> folder. I don't think the "If / Ifelse" line in the delete script is properly handling a negative reply (i.e., it's handling the condition if the file doesn't exist, but not if you reply "No'" to the delete dialog). Note everything else appears to be functioning fine...great actually!
Thanks again,
Ken

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by SkyFrontier »

Damn.
And I thought: "Nah, if they don't like a theme, they will trash it. Period." :? :biggrin:

I'll probably do the correction by simply removing that confirmation, Ken. Never liked it much, anyway. Also will upload the mentioned alternative of moving to another predefined folder instead of nuking it.

Glad you liked it, guys.

-Sammay, can you please provide me an html template mocking up a preview of a XYplorer window, displaying RRGGBB values taken from a variable* (perhaps the xyini format, if input has it) into tree, pane 1 and 2, plus a simple confirmation duo (ok\cancel) with a confirm msg ("Continue?")?
Also, let me know if you stumble upon any serious scripting issues - I'll do my best to help you.

Thanks in advance.

_______
*$a = "$rgb1|$rgb2|$rgb3";
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by bdeshi »

I'll try my best I'll get it done! :)
In fact, I'm thinking of a project, coloring a html with XYplorer's current color scheme, so two jobs will go nicely.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by klownboy »

SkyFrontier wrote:...provide me an html template mocking up a preview of a XYplorer window, displaying RRGGBB values taken from a variable
Now that would be a great idea - to be able to preview the theme change before it happens and decide whether you want it to happen. It would be especially nice for your latest MegaTheme script SkyFrontier, which creates themes on the fly since a particular theme which is created may not be to your liking depending on your mood at the time. It might also be nice for this to be optional as far as, to view or not to view a preview.. :appl:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by SkyFrontier »

klownboy wrote:
SkyFrontier wrote:...provide me an html template mocking up a preview of a XYplorer window, displaying RRGGBB values taken from a variable
Now that would be a great idea - to be able to preview the theme change before it happens and decide whether you want it to happen. It would be especially nice for your latest MegaTheme script SkyFrontier, which creates themes on the fly...
That's the Random Themes Creator.
The Themes Mega Pack have everything pre-rendered.

Anyway, I'll add the preview to both scripts (anyone else using the Random Themes Creator?), as Sammay agreed to build the mock up HTML screen.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by SkyFrontier »

MegaThemesLoader_DeleteOrFavTheme.xys is my answer, Ken.
With this you can simply:

keep '1' (*default*) to delete a theme;
press '2' to move it into a '..Themes\MegaPack\FAVS' folder;
press '3' to skip.

After each action is mandatory to load a new theme otherwise the script won't run.
-Yes, I fixed that problem. By deleting the message in favor of a generic 'status' message. :P
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by SkyFrontier »

Good news, everyone!

Themes Loader has got a sequential variant.
Random Themes Creator was updated with lots of features, but I'm yet to decide how to integrate them into a preview mode.
All scripts will benefit from SammaySarkar's Themes Preview

Open to suggestions, so I publish final versions meeting your expectations.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: XYstylEZ - 1170 Themes Pack, plus Loader/Deletion Tool

Post by SkyFrontier »

457 themes out of the original pack (plus additions, I guess - this is stuff I'm doing over spare time), sorted under categories:

Common
Favs
Random
ToTweak

I made a classification tool, probably will upload it as soon as I can.
Attachments
MegaPack_ReSORTED.zip
(284.53 KiB) Downloaded 371 times
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply