Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c5dcb81

Browse files
committed
[[ Backdrop ]] Add first-run backdrop
Show Gray88 backdrop on first run
1 parent 5680dc9 commit c5dcb81

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

Toolset/home.livecodescript

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ command revInternal__ResetPreferences
744744
put "false" into tPropsArray["cShowRevolutionStacks"]
745745
put "22" into tPropsArray["cMenuHeight"]
746746
put "1067,251,1882,827" into tPropsArray["cRevDocsRect"]
747-
put "Black" into tPropsArray["cBackDropColor"]
747+
put "Gray88" into tPropsArray["cBackDropColor"]
748748
put "false" into tPropsArray["cREVMsgShowUIFrontScripts"]
749749
put "false" into tPropsArray["revstack"]
750750
put "100" into tPropsArray["cMacOSProgressScrollbarWidth"]
@@ -1394,6 +1394,18 @@ end revInternal__InitialiseDefaults
13941394
command revInternal__InitialiseOptions
13951395
revInternal__Log "Enter", "Options Initialisation"
13961396

1397+
if the StartCenterClassic of stack "revPreferences" is not "true" then
1398+
set the cBackDrop of stack "revPreferences" to "Gray88"
1399+
set the cBackDropColor of stack "revPreferences" to "Gray88"
1400+
end if
1401+
local tBackdrop
1402+
put the cBackDrop of stack "revPreferences" into tBackdrop
1403+
if tBackdrop is "none" then
1404+
set the backdrop to tBackdrop
1405+
else
1406+
set the backdrop to the cBackDropColor of stack "revPreferences"
1407+
end if
1408+
13971409
set the selectGroupedControls to the cSelectGrouped of stack "revPreferences"
13981410
set the tooltipDelay to the cREVToolTipDelay of stack "revPreferences"
13991411
set the grid to the cGrid of stack "revPreferences"

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8725,7 +8725,7 @@ on revIDEToggle pProperty
87258725
case "Backdrop"
87268726
if the backDrop is "none" then
87278727
if revIDEGetPreference("cBackDropColor") is empty then
8728-
revIDESetPreference "cBackDropColor", "black"
8728+
revIDESetPreference "cBackDropColor", "Gray88"
87298729
end if
87308730
set the backDrop to revIDEGetPreference("cBackDropColor")
87318731
revIDESetPreference "cBackDrop", the backDrop
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# First run backdrop
2+
The IDE now has a backdrop by default on first-run. This can be
3+
turned off as usual via the view menu. Users with existing preferences
4+
should be unaffected.

0 commit comments

Comments
 (0)