Giter VIP home page Giter VIP logo

helium-theme-editor's Introduction

Helium editor is available online

helium-theme-editor's People

Contributors

glebdurygin avatar web-devel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ajmal001

helium-theme-editor's Issues

Designate version of helium-theme add-on the editor is built for

Problem

The editor is actual for the particular version of the Helium add-on (latest release). For earlier versions there may be some discrepancies e.g. in variable names which will confuse users.

Suggested solution

Display version of the Helium which is currently used in editor. Potentially leave instruction how to run editor for previous versions

NullPointerException in ThemeVariableField

STR

  • Change primary color.
  • Switch to dark preset.
  • Press ok in warning dialog.
Stacktrace java.lang.NullPointerException: null at com.haulmont.editor.helium.web.components.themevariablefield.ThemeVariableField.lambda$initValueField$1(ThemeVariableField.java:328) ~[helium-editor-web-0.1.jar:na] at com.haulmont.bali.events.EventHub.publish(EventHub.java:170) ~[cuba-global-7.2.2.jar:7.2.2] at com.haulmont.cuba.web.gui.components.WebAbstractComponent.publish(WebAbstractComponent.java:100) ~[cuba-web-7.2.2.jar:7.2.2] at com.haulmont.cuba.web.gui.components.WebAbstractValueComponent.setValue(WebAbstractValueComponent.java:102) ~[cuba-web-7.2.2.jar:7.2.2] at com.haulmont.editor.helium.web.components.themevariablefield.ThemeVariableField.reset(ThemeVariableField.java:377) ~[helium-editor-web-0.1.jar:na] at com.haulmont.editor.helium.web.components.themevariablefield.ThemeVariableField.setValueByPreset(ThemeVariableField.java:275) ~[helium-editor-web-0.1.jar:na] at com.haulmont.editor.helium.web.screens.mainscreen.RespMainScreen.lambda$updateFieldsByColorPreset$5(RespMainScreen.java:282) ~[helium-editor-web-0.1.jar:na] at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) ~[na:na] at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1085) ~[na:na] at com.haulmont.editor.helium.web.screens.mainscreen.RespMainScreen.updateFieldsByColorPreset(RespMainScreen.java:280) ~[helium-editor-web-0.1.jar:na] at com.haulmont.editor.helium.web.screens.mainscreen.RespMainScreen.updateColorPreset(RespMainScreen.java:253) ~[helium-editor-web-0.1.jar:na] at com.haulmont.editor.helium.web.screens.mainscreen.RespMainScreen.lambda$onColorPresetFieldValueChange$0(RespMainScreen.java:106) ~[helium-editor-web-0.1.jar:na] at com.haulmont.bali.events.EventHub.publish(EventHub.java:170) ~[cuba-global-7.2.2.jar:7.2.2] at com.haulmont.cuba.gui.components.actions.BaseAction.actionPerform(BaseAction.java:222) ~[cuba-gui-7.2.2.jar:7.2.2] at com.haulmont.cuba.web.sys.WebDialogs$OptionDialogBuilderImpl.lambda$show$0(WebDialogs.java:360) ~[cuba-web-7.2.2.jar:7.2.2] at com.haulmont.cuba.web.widgets.CubaButton.fireClick(CubaButton.java:76) ~[cuba-web-widgets-7.2.2.jar:na] at com.vaadin.ui.Button$1.click(Button.java:57) ~[vaadin-server-8.9.2-4-cuba.jar:8.9.2-4-cuba] ... 43 common frames omitted

Also primary color is not cleared to preset's one.

Variables for buttons are not applied

When configuring the buttons, I used the built-in Cuba platform styles: primary, default, danger, secondary
I configured colors according to these styles (screen 1), uploaded and added variables to the project (see screen 2, they are already filled in the demo stand)
on the 3rd screen the register button has a disabled class. Style for disabled button are not applied
helium
button-vars
image

Please check a issue.

No size is selected on first open

It seems that HeliumThemeVariantsManager#loadUserAppThemeModeSettingOrDefault should be used here:

// ComponentSandbox
protected void initSizeField() {
    sizeField.setOptionsList(variantsManager.getAppThemeSizeList());
    sizeField.setValue(variantsManager.loadUserAppThemeSizeSetting());
}

Screen Shot 2020-04-24 at 2 52 28 PM

The value of the child color property is not set correctly after resetting the parent property

Environment

Browser: Firefox 75.0

Description of the bug or enhancement

  1. Select the dark Color Preset
  2. Set the custom color for the --background-color
  3. Set the other custom color for the border-color
    изображение
  4. Reset --background-color

AR: The --border-color property was assigned to the color --background-color, and the Color Preset property was not changed to a dark value
изображение
Also, child value incorrectly reset for the other properties.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.