Tools to use: The IDE Itself!
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Tools to use: The IDE Itself!
Most of the IDE can be edited with itself!
To do this first go into the IDE preferences panel turn on UI Then you can use the project browser to get at the pieces UI element of the IDE itself:
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.
To do this first go into the IDE preferences panel turn on UI Then you can use the project browser to get at the pieces UI element of the IDE itself:
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.
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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/
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Tools to use: The IDE Itself!
You mean like the revTools, revMenuBar (and it's Toolbar group), Property Inspector, etc., etc.?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?
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.
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Tools to use: The IDE Itself!
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..
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
I wonder of the contrast could not be greater.
https://richmondmathewson.owlstown.net/
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Tools to use: The IDE Itself!
I like yours better, can you post the code for making the widget icons fill white?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.
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?
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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:
- - -
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:
- - -
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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/
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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/
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Tools to use: The IDE Itself!
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.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.
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.
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Tools to use: The IDE Itself!
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!
-
- Posts: 285
- Joined: Thu Sep 16, 2021 1:40 pm
- Contact:
Re: Tools to use: The IDE Itself!
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
Or if you have photoshop you can probably make a droplet to do it quick.
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
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
I don't think that is what Paul is looking for: he is looking for a new set of icons altogether for this section ofdo some image processing
the toolBar:
- -
Which DO look as though they have been hanging around since the 'aqua' of MacOS X.
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
"Just for fun" here's a screen shot of the revTools palette in LC 10.0.0 (dp 1)
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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,make it stick between launches
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/
-
- Posts: 285
- Joined: Thu Sep 16, 2021 1:40 pm
- Contact:
Re: Tools to use: The IDE Itself!
Aqua is really pleasant to look at it, like breasts for GUIs.
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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.
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/
- richmond62
- Posts: 3741
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Tools to use: The IDE Itself!
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.
if it were wrapped up in something else.
So . . . it might be worth considering making Widget buttons be images.
https://richmondmathewson.owlstown.net/
- OpenXTalkPaul
- Posts: 2206
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Tools to use: The IDE Itself!
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.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.
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).
-
- Posts: 130
- Joined: Sun Jun 04, 2023 3:32 am
- Location: Berkeley, CA, US, Earth
- Contact:
Re: Tools to use: The IDE Itself!
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests