Git Product home page Git Product logo

maui.colorpicker's Introduction


๐Ÿ”ญ Iโ€™m currently working on: too many sideprojects @ github
๐ŸŒฑ Iโ€™m currently learning: fsharp
๐Ÿงช Iโ€™m experimenting with: Svelte + TypeScript
๐Ÿฅณ Iโ€™m hyped about: ML | dotnet | WASM
๐Ÿ’ฌ Ask me about: remote & nomadic work
๐Ÿ“ซ How to reach me: johnnys.page
๐Ÿ“ฐ Here is my blog: johnnys.news
๐ŸŽจ This is my portfolio: johnnys.page/portfolio
๐Ÿฑ Here is my bento: bento.me/johnny

๐Ÿ‘ค Pronouns: he / him
โšก๏ธ Fun fact: 95% of my sideprojects are stuck at the last 5%


MTFBWYA โœจ

maui.colorpicker's People

Stargazers

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

Watchers

 avatar  avatar  avatar

maui.colorpicker's Issues

Confusing fork

There is a fork of this package with the result that there are now two very similar nuget packages available, where the forked package now has more downloads.

image

It's a bit confusing for users but it turns out that there are actually some improvements like a fix for #4. It's a pity that the improvements were done in a fork rather than contributing them back via PRs.

Would it be an idea to discuss with @trungnt2910 to have one merged repo and package?

ColorPicker don't work in macOs

macOs:

Android, iOS:

xaml-code:

...
        <Border x:Name="ColorPickerHolderFrame"
                HeightRequest="150"
                HorizontalOptions="Center"
                WidthRequest="300"
                Margin="15">
            <controls:ColorPicker
                x:Name="ColorPickerBody"
                ColorFlowDirection="Horizontal"
                ColorSpectrumStyle="TintToHueToShadeStyle"
                PointerRingBorderUnits="0.3"
                PointerRingDiameterUnits="0.7"
                PickedColorChanged="OnPickedColorChanged">
                <controls:ColorPicker.BaseColorList>
                    <x:Array Type="{x:Type x:String}">
                        <!--  Red  -->
                        <x:String>#ff0000</x:String>
                        <!--  Yellow  -->
                        <x:String>#ffff00</x:String>
                        <!--  Green (Lime)  -->
                        <x:String>#00ff00</x:String>
                        <!--  Aqua  -->
                        <x:String>#00ffff</x:String>
                        <!--  Blue  -->
                        <x:String>#0000ff</x:String>
                        <!--  Fuchsia  -->
                        <x:String>#ff00ff</x:String>
                        <!--  Red  -->
                        <x:String>#ff0000</x:String>
                    </x:Array>
                </controls:ColorPicker.BaseColorList>
        </controls:ColorPicker>
        </Border>
...

Setting the pointer ring X position is not always correct

From a default constructed ColorPicker, setting the PointerRingPositionXUnits property from code to 0.666 and the PointerRingPositionYUnits to 0 does not always point to the color "Blue". It sometimes gets off a little bit to the left and gives a lighter variant of blue.

Sometimes, this bug occurs:
image

Normally, this is the expected behavior:
image

The problem here is, the drawing and color determination relies on the _lastTouchPoint, which is relative to the CanvasSize. However, in some weird situations, CanvasSize can change, invalidating the coordinates of _lastTouchPoint.

See:

// Update as last touch Position on Canvas
_lastTouchPoint = new SKPoint(Convert.ToSingle(xPosition), Convert.ToSingle(yPosition));
CanvasView.InvalidateSurface();

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.