-
Notifications
You must be signed in to change notification settings - Fork 2
Home
SnejUgal edited this page Sep 16, 2017
·
7 revisions
Attheme-js is a little framework for working with .attheme files in JS.
- Signed ints as values of variables;
- HEX shorthand (
#rrggbb
and#aarrggbb
) as values of variables; - Images as a chat wallpaper.
For using with node.js, just run
npm install attheme-js
You can also download the script from the “Releases” tab
const Attheme = require("attheme-js");
<script src="path/to/attheme.min.js"></script>
// creating a theme
let themeContent =
`windowBackgroundWhite=#e8f5e9
actionBarDefault=-11751600`;
const theme = new Attheme(themeContent);
// changing its content
theme.chat_outBubble = {
red: 76,
green: 175,
blue: 80,
alpha: 192
};
theme.windowBackgroundGray.green = 230;
// getting the theme's content as text
themeContent = theme.asText();
See the documentation here.
See stuff like correct file reading here.