Tools to use: The IDE Itself!

A discussion of tools that could be useful for editing various parts of OXT
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

Most of the IDE can be edited with itself!
To do this first go into the IDE preferences panel turn on UI
Screen Shot 2021-09-17 at 2.41.17 AM.png
Screen Shot 2021-09-17 at 2.41.17 AM.png (60.66 KiB) Viewed 16154 times
Then you can use the project browser to get at the pieces UI element of the IDE itself:
Screen Shot 2021-09-17 at 2.39.35 AM.png
Screen Shot 2021-09-17 at 2.39.35 AM.png (193.6 KiB) Viewed 16154 times
After you've edited the piece of IDE that you want to modify, you must explicitly save it's stack file by control-clicking or right clicking on it's stack in the project browser and selecting Save from that menu, otherwise the changes will be lost when you quit the IDE.
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

Is that possible with script-only stacks that seem to somehow generate stacks on-the-fly when they are "called" in the IDE?
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

richmond62 wrote: Tue Nov 16, 2021 6:41 pm Is that possible with script-only stacks that seem to somehow generate stacks on-the-fly when they are "called" in the IDE?
You mean like the revTools, revMenuBar (and it's Toolbar group), Property Inspector, etc., etc.?
No, BUT you CAN edit the behavior scripts that generate them! It's probably best to do that on a copy in a text editor outside of the IDE.

The nice thing is can also experiment with these temporary stacks that those scripts create, changing properties. colors and such without worrying about doing any permanent damage. I was doing that earlier today, trying to adjust revTools palette for a script that's toggling darkMode on and off, the default's make it hard to see some of the tools, so I have it changing some colors in tool groups that are in that palette, just trying setting different values right from the message box to see how they looked.
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

Screen Shot 2021-11-17 at 8.18.10 AM.png
Screen Shot 2021-11-17 at 8.18.10 AM.png (57.89 KiB) Viewed 16040 times
This is being modified by a darkMode script that sets properties on the in-memory stack that is the script generated revTools palette, eventually some of that darkMode script should be integrated into the script that generates to stack, but I can play around with the look of it until I'm satisfied without ever modifying the revTools scripts..
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

SShot 2021-11-17 at 18.09.12.png
SShot 2021-11-17 at 18.09.12.png (19.87 KiB) Viewed 16039 times
-
I wonder of the contrast could not be greater.
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

richmond62 wrote: Wed Nov 17, 2021 4:11 pm SShot 2021-11-17 at 18.09.12.png
-
I wonder of the contrast could not be greater.
I like yours better, can you post the code for making the widget icons fill white?

The "classic" controls are a bigger issue because they're RGB png image files and they're platform AND platform version specific... I'm thinking we could substitute some Generic SVGs icons for those that would be the same on all IDE platforms?
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

Oh "Sugar" . . .

That was just me playing 'silly buggers' with GIMP.

Currently at my school as "going live" (again, again, again) from next week.

Will see what I can do when I get home.

Currently in front of a 2006 iMac that can only run LC 8.

BUT, I do notice in the Application browser that the widget icons on the revTools palette in 8.2.0 (dp 2)

can be looked at in the Inspector and their colours can be changed:
-
Screen Shot 2021-11-18 at 11.16.41 AM.png
Screen Shot 2021-11-18 at 11.16.41 AM.png (56.61 KiB) Viewed 16029 times
-
Screen Shot 2021-11-18 at 11.17.12 AM.png
Screen Shot 2021-11-18 at 11.17.12 AM.png (55.69 KiB) Viewed 16029 times
-
Screen Shot 2021-11-18 at 11.18.39 AM.png
Screen Shot 2021-11-18 at 11.18.39 AM.png (59.12 KiB) Viewed 16028 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

Screen Shot 2021-11-18 at 11.19.14 AM.png
Screen Shot 2021-11-18 at 11.19.14 AM.png (79.39 KiB) Viewed 16027 times
-
I have no way of knowing, until I get home, if that is as simple as that is for LC 9.6.3.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

SShot 2021-11-18 at 17.31.56.png
SShot 2021-11-18 at 17.31.56.png (23.84 KiB) Viewed 16024 times
-
LC 9.6.3.

Although I cannot find one or two components . . .

However, doing save stack "revTools" in the messageBox does NOT make it
stick between launches.
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

richmond62 wrote: Thu Nov 18, 2021 4:16 pm SShot 2021-11-18 at 17.31.56.png
-
LC 9.6.3.

Although I cannot find one or two components . . .

However, doing save stack "revTools" in the messageBox does NOT make it
stick between launches.
Right, that's because the revTools.livecodescript file is a script-only stack now, it generates it's UI stack "on-the-fly"entirely via script. You have to edit the script-only file to make lasting changes, the revTools you see on screen is only a temporarily generated stack in memory.

But changing properties with Project Browser (or the Application Browser if you prefer) and then creating a corresponding script that does the same change, is basically the method that I used for creating a script that produced my version, and placed that script in commands in the Home stack script (ie. on IDEDarkMode \ IDELightMode, along with the macTools command for macOS window frames which works well in IDE startup as you never see lightMode window frames) which then gets applied/saved in a preferences file property that IDE user can toggle.

The widget section might be bit more tricky because widgets can be added and removed "on the fly" so that's at least one other script that has to be modified.
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

I'd really like to redo those "classic controls" icons as SVG, with icons that are platform generic! The icons that are in there now on macOS are from like MacOS X 10.4, about 17years old, lol!
xAction
Posts: 285
Joined: Thu Sep 16, 2021 1:40 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by xAction »

Project browser
Select revTools
Right click
Standalone Application Settings
Copy Files
Check "Copy Reference Files" use the default folder it provides
Project Browser
Select revTools
Build stand alone
Check the resources folder

There's all the .png files that make up the UI
However...that's going to be platform specific it seems and is mess trying to find where the files go because they didn't all come from one folder to start with so head on down to

/"C:\Program Files\RunRev\LiveCode Community 9.6.1\Toolset\resources\supporting_files\themes\"

Or whatever the equivalent of that is in the bundle on Mac.
All the folders in there have pngs.
Write yourself a script to rip through all the folders and do some image processing on it. Like with imagemagick

Code: Select all

magick mogrify *.png -grayscale Rec709Luminance *.png
Or if you have photoshop you can probably make a droplet to do it quick.
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

do some image processing
I don't think that is what Paul is looking for: he is looking for a new set of icons altogether for this section of
the toolBar:
-
SShot 2021-11-18 at 20.34.13.png
SShot 2021-11-18 at 20.34.13.png (14.93 KiB) Viewed 16175 times
-
Which DO look as though they have been hanging around since the 'aqua' of MacOS X.
-
Aqua OS X Elements.gif
Aqua OS X Elements.gif (23.2 KiB) Viewed 16175 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

SShot 2021-11-18 at 21.29.13.png
SShot 2021-11-18 at 21.29.13.png (18.79 KiB) Viewed 16174 times
-
"Just for fun" here's a screen shot of the revTools palette in LC 10.0.0 (dp 1)
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

make it stick between launches
I am just downloading LC 7.1.4 (which will not run on my MacOS 12 machine), and I shall unpack the app package either here,
or shove it across to one of my 10.7.5 machines and do it there.

I'll suck out the aqua buttons and "fart around" with them . . . and maybe those could be used?

Certainly the easiest way, as I demonstarted earlier, to de-aqua those buttons is to grey-scale them.
https://richmondmathewson.owlstown.net/
xAction
Posts: 285
Joined: Thu Sep 16, 2021 1:40 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by xAction »

Aqua is really pleasant to look at it, like breasts for GUIs.
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

One way to deal with the widget icons [which, as far as I am aware are currently generated from an embedded font in the IDE]
would be to export them (i.e. ALL the font items) as png images with their colours set the way we want them to end up in
the revTools palette, and then reimplement the revTools palette (or, possibly, a dedicated Widget palette) using those images
as buttons rather than the way things are done at present.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3741
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Tools to use: The IDE Itself!

Post by richmond62 »

That license does seem to suggest that a commercial user might have difficulty, legally, handing that font on
if it were wrapped up in something else.

So . . . it might be worth considering making Widget buttons be images.
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 2206
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Tools to use: The IDE Itself!

Post by OpenXTalkPaul »

richmond62 wrote: Sat Nov 20, 2021 1:13 pm That license does seem to suggest that a commercial user might have difficulty, legally, handing that font on
if it were wrapped up in something else.

So . . . it might be worth considering making Widget buttons be images.
I'm perfectly capable of creating some basic SVG Path icons from scratch, in illustrator and getting them into SVGIcon path widget as a string. That's how I did that align palette, there's no images in that stack, it's all SVG Paths that can scale to any size. But if we can find suitable GPL compatible SVGs already made up then tat saves some work.

Yes that's what I mean. Basically we just need generic SVG set for the "classic controls" set and I know where the PNGs are in the IDE (one version of the folder for each desktop platform).
mwieder
Posts: 130
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: Tools to use: The IDE Itself!

Post by mwieder »

Whew! Finally managed to register for this board after disabling the ad blocker.

Anyway, for PowerTools I opted for actual images of the control objects rather than svg avatars. For each control I create the control, take a snapshot of it, resize it to fit into a nominal 40x40 pixel box, and place the snapshot in a datagrid. That way the image is consistent with the native operating system and can appear different on different platforms. Plus it saves having to create a unique svg avatar for each control.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests