Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
2a8a5d9a
Commit
2a8a5d9a
authored
2 years ago
by
Eric Oulashin
Browse files
Options
Downloads
Patches
Plain Diff
Small change in readColorConfig() in SlyEdit_IceStuff.js
parent
28babfed
No related branches found
No related tags found
1 merge request
!294
Made a fix for the refactored theme config reading code in much of the Digital Distortion tools
Pipeline
#4300
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/SlyEdit_IceStuff.js
+2
-5
2 additions, 5 deletions
exec/SlyEdit_IceStuff.js
with
2 additions
and
5 deletions
exec/SlyEdit_IceStuff.js
+
2
−
5
View file @
2a8a5d9a
...
...
@@ -48,12 +48,11 @@ function readColorConfig(pFilename)
var
colorSettingsObj
=
themeFile
.
iniGetObject
();
themeFile
.
close
();
// Make a backup of the menuOptClassicColors setting so we can set it
// back in the Ice color settings object after setting the colors.
var
useClassicColorsBackup
=
gConfigSettings
.
iceColors
.
menuOptClassicColors
;
// Ice-specific colors
for
(
var
prop
in
gConfigSettings
.
iceColors
)
{
if
(
prop
==
"
menuOptClassicColors
"
)
// Skip this one (it's a boolean value, not a color)
continue
;
if
(
colorSettingsObj
.
hasOwnProperty
(
prop
))
{
// Using toString() to ensure the color attributes are strings (in case the value is just a number)
...
...
@@ -76,8 +75,6 @@ function readColorConfig(pFilename)
gConfigSettings
.
genColors
[
prop
]
=
attrCodeStr
(
value
);
}
}
gConfigSettings
.
iceColors
.
menuOptClassicColors
=
useClassicColorsBackup
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment