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

Commit 5bd6668

Browse files
Merge pull request #1679 from livecode/feature-first_run_backdrop
[[ Backdrop ]] Add first-run backdrop
2 parents 1cae112 + c5dcb81 commit 5bd6668

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
@@ -8729,7 +8729,7 @@ on revIDEToggle pProperty
87298729
case "Backdrop"
87308730
if the backDrop is "none" then
87318731
if revIDEGetPreference("cBackDropColor") is empty then
8732-
revIDESetPreference "cBackDropColor", "black"
8732+
revIDESetPreference "cBackDropColor", "Gray88"
87338733
end if
87348734
set the backDrop to revIDEGetPreference("cBackDropColor")
87358735
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)