Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm using the SparkChromeWindowedApplicationSkin in my Window Application and I'm making changes to the skin in the SDK directory but none of my changes are taking effect.

I set the skin in my CSS like this:

s|WindowedApplication
{
    backgroundAlpha: 1;
    backgroundColor: #FFFFFF;
    resizeAffordanceWidth: 6;
    skinClass: ClassReference("spark.skins.spark.SparkChromeWindowedApplicationSkin");
}

Then I control + click on the skin name and it opens the file. I then change some of the styles and properties. I then run the application. None of my changes seem to make a difference.

UPDATE: I just typed random gibberish into the skin and no errors were thrown. So I know it's not using the changes.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
193 views
Welcome To Ask or Share your Answers For Others

1 Answer

I copied the skins out of the SDK directory and placed them into my project folder. I placed them the same package / folder path as they had in the SDK and copied the assets to the root of my project folder (same path again). This worked! I'm still curious to know if this is the way everyone else does it and why the changes to the skins in the SDK did not update with my changes. Here is a screenshot of my project src directory now:

Screenshot of my project


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...