Coder Social home page Coder Social logo

Comments (6)

danielchalmers avatar danielchalmers commented on June 25, 2024

Why have duplicate colors in a palette? Just so I can understand the use-case.

from mudblazor.

benbaker76 avatar benbaker76 commented on June 25, 2024

Why have duplicate colors in a palette? Just so I can understand the use-case.

In our use-case the main palette contains 16 x 16 color palettes each of which may be repeating colors. Eg. Black and magenta.

from mudblazor.

ScarletKuro avatar ScarletKuro commented on June 25, 2024

I'm not even sure if that's easy to fix, because for MudColor it's the same instance. When the color picker iterates through the items, it will set the mud-picker-color-dot for all values that match the 'selected' one.
That would require to rework the component and rely on the selected index instead.

from mudblazor.

benbaker76 avatar benbaker76 commented on June 25, 2024

I'm not even sure if that's easy to fix, because for MudColor it's the same instance. When the color picker iterates through the items, it will set the mud-picker-color-dot for all values that match the 'selected' one. That would require to rework the component and rely on the selected index instead.

To me selected index makes better sense anyway

from mudblazor.

benbaker76 avatar benbaker76 commented on June 25, 2024

How can I take the existing ColorPicker component and make the changes for my use-case? Is it a relatively simple process?

from mudblazor.

ScarletKuro avatar ScarletKuro commented on June 25, 2024

To me, selected index makes better sense anyway.

Perhaps, but this is a big change, and I don’t think anyone will take it on right now.

How can I take the existing ColorPicker component and make the changes for my use-case? Is it a relatively simple process?

You would probably need to copy and paste the MudColorPicker.razor and MudColorPicker.razor.cs (v6) files entirely and modify them for your needs. The complexity of the process depends on many factors, including your knowledges.

from mudblazor.

Related Issues (20)

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.