Is there way how to change the color theme of snap (flat/default) mode?
example:
changeTheme(255, 0, 0) =
(its mspaint'ed, it looks bad lol)
Is there way how to change the color theme of snap (flat/default) mode?
example:
changeTheme(255, 0, 0) =
(its mspaint'ed, it looks bad lol)
If you shift click the Snap logo,
, you can enter Dev mode, and when you right click a morph (anything on screen), you can change its color. However, I don't now of any way to save these, besides running your own version of Snap.
Is there how to change the color with javascript ?
Just modify IDE_Morph.prototype.setFlatDesign
.
and where is that?
this didnt do anything, i wonder why
edit: oh hold on, i hovered on something and uh
just modify
IDE_Morph.prototype.setFlatDesign = function () {
MorphicPreferences.isFlat = true;
SpriteMorph.prototype.paletteColor = WHITE;
SpriteMorph.prototype.paletteTextColor = new Color(70, 70, 70);
StageMorph.prototype.paletteTextColor
= SpriteMorph.prototype.paletteTextColor;
StageMorph.prototype.paletteColor = SpriteMorph.prototype.paletteColor;
SpriteMorph.prototype.sliderColor = SpriteMorph.prototype.paletteColor;
IDE_Morph.prototype.buttonContrast = 30;
IDE_Morph.prototype.backgroundColor = new Color(220, 220, 230);
IDE_Morph.prototype.frameColor = new Color(240, 240, 245);
IDE_Morph.prototype.groupColor = WHITE;
IDE_Morph.prototype.sliderColor = SpriteMorph.prototype.sliderColor;
IDE_Morph.prototype.buttonLabelColor = new Color(70, 70, 70);
IDE_Morph.prototype.tabColors = [
IDE_Morph.prototype.frameColor,
IDE_Morph.prototype.frameColor.lighter(50),
IDE_Morph.prototype.groupColor
];
IDE_Morph.prototype.rotationStyleColors = IDE_Morph.prototype.tabColors;
IDE_Morph.prototype.appModeColor = IDE_Morph.prototype.frameColor;
IDE_Morph.prototype.scriptsPaneTexture = null;
IDE_Morph.prototype.padding = 1;
SpriteIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
CostumeIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
SoundIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
TurtleIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
SyntaxElementMorph.prototype.contrast = 25;
ScriptsMorph.prototype.feedbackColor = new Color(153, 255, 213);
};
then run
this.parentThatIsA(IDE_Morph).flatDesign()
for example,
note: you should keep a backup of the project before running it.
ah thanks.
By the way, how do i make a block which reports that im on flat mode?
Using flat mode = returns true
Using default mode = returns false
Ah, theres a problem that have this white borders of 1px, Is there how to fix it?
oh, that is
IDE_Morph.prototype.backgroundColor
Thanks, Now i made dark themed flat mode, Here how it looks like:
Code:
IDE_Morph.prototype.setFlatDesign = function () {
MorphicPreferences.isFlat = true;
SpriteMorph.prototype.paletteColor = new Color(30, 30, 30);
SpriteMorph.prototype.paletteTextColor = new Color(70, 70, 70);
StageMorph.prototype.paletteTextColor
= SpriteMorph.prototype.paletteTextColor;
StageMorph.prototype.paletteColor = SpriteMorph.prototype.paletteColor;
SpriteMorph.prototype.sliderColor = SpriteMorph.prototype.paletteColor;
IDE_Morph.prototype.buttonContrast = 30;
IDE_Morph.prototype.backgroundColor = new Color(220, 220, 230);
IDE_Morph.prototype.frameColor = new Color(0, 0, 0);
IDE_Morph.prototype.backgroundColor = new Color(0, 0, 0);
IDE_Morph.prototype.groupColor = new Color(20, 20, 20);
IDE_Morph.prototype.sliderColor = SpriteMorph.prototype.sliderColor;
IDE_Morph.prototype.buttonLabelColor = new Color(240, 240, 240);
IDE_Morph.prototype.tabColors = [
IDE_Morph.prototype.frameColor,
IDE_Morph.prototype.frameColor.lighter(50),
IDE_Morph.prototype.groupColor
];
IDE_Morph.prototype.rotationStyleColors = IDE_Morph.prototype.tabColors;
IDE_Morph.prototype.appModeColor = IDE_Morph.prototype.frameColor;
IDE_Morph.prototype.scriptsPaneTexture = null;
IDE_Morph.prototype.padding = 1;
SpriteIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
CostumeIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
SoundIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
TurtleIconMorph.prototype.labelColor
= IDE_Morph.prototype.buttonLabelColor;
SyntaxElementMorph.prototype.contrast = 25;
ScriptsMorph.prototype.feedbackColor = new Color(153, 255, 213);
};
well, the getters and setters library already has that, in the
(setting [Flat design v] :: sensing)
reporter
and if you really want the js code to get it, here it is.
return MorphicPreferences.isFlat
whats an op?
edit: done, i did it
or just edit the title
just go into the gui.js
file (in the src
folder) and then find the function IDE_Morph.prototype.setFlatDesign
and then edit that function to make your own theme. The code is exactly like what I posted, heck, I copied the code from the source code.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.