Giter Club home page Giter Club logo

camunda-modeler-plugin-dracula's Introduction

Hello! 👋, my name is Henrique

I am a backend developer with 10+ years of industry experience.

  • 💬 Ask me about Java, JavaScript, Kotlin, Camunda

Online Presence

github linkedin stackoverflow

camunda-modeler-plugin-dracula's People

Contributors

hlucasfranca avatar nikku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

camunda-modeler-plugin-dracula's Issues

Custom colors should not be overwritten

  1. User - set colors should not be overwritten
  2. The default color should be set directly at model initialization(can avoid overwriting custom colors)
 new BpmnModeler({
      bpmnRenderer: {
        defaultFillColor: '#17171a',
        defaultStrokeColor: '#FFF',
      },
    });

image

Dracula plugin sets the color of labels

(moved from camunda/camunda-modeler-plugins#108)

Describe the Bug

When I edit a BPMN model with the Dracula plugin installed, it changes the color of all labels from:

<bpmndi:BPMNLabel>

to:

<bpmndi:BPMNLabel color:color="rgb(207, 205, 205)">

Steps to Reproduce

  1. install Dracula plugin
  2. open the Modeller
  3. open a BPMN
  4. change something
  5. save
  6. examine the updated BPMN

Expected Behavior

It should never change the color in the BPMN.

Environment

  • OS: MacOS 14.4.1
  • Camunda Modeler Version: 5.21.0

Labels broken as of CM 5.13.0

Using Windows 10
Attempting to label any element causes an error and the label won't show up, though the text is still there when you re-edit.

I Changed DraculaTheme.js line 13 'label' to 'bpmnElement', so from:

element.di.label.set('color', element.di['border-color']=getComputedStyle(document.documentElement).getPropertyValue('--color-grey-225-10-35'));

To:

element.di.bpmnElement.set('color', element.di['border-color']=getComputedStyle(document.documentElement).getPropertyValue('--color-grey-225-10-35'));

and it seems to work now, but I don't understand it enough to do a PR.

log.txt

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.