Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme creator button colors are swaped #13

Open
alseether opened this issue Nov 24, 2021 · 0 comments
Open

Theme creator button colors are swaped #13

alseether opened this issue Nov 24, 2021 · 0 comments

Comments

@alseether
Copy link

On CreateThemeContent.js, the text and background colors are swaped.

const getThemeObj = () => {
        const themeObj = {};
        themeObj[_.camelCase(state.themeName)] = {
            "id": generate(),
            "name": state.themeName,
            "colors": {
                "body": state.bgColor,
                "text": state.txtColor,
                "button": {
                    "text": state.btnBgColor,           // <= This two lines are swapped
                    "background": state.btnTxtColor     // 
                },
                "link": {
                    "text": state.linkColor,
                    "opacity": 1
                }
            },
            "font": state.font
        };
        return themeObj;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant