AathifMahir / MauiIcons

MauiIcons is Icon Collection Library for .Net Maui
MIT License
196 stars 13 forks source link

SwipeView.SwipeItem.IconImageSource IconColor and IconBackgroundColor does not affect the appearance of the icon #86

Closed uom42 closed 6 months ago

uom42 commented 6 months ago

Describe the bug SwipeView.SwipeItem.IconImageSourceЖ IconColor and IconBackgroundColor properties does not affect the appearance of the icon

To Reproduce:

<SwipeView>
    <SwipeView.LeftItems>
        <SwipeItems>

            <SwipeItem>
                <SwipeItem.IconImageSource>
                    <mi:MaterialOutlined
                        Icon="Edit"
                        IconBackgroundColor="Magenta"
                        IconColor="Green" />
                    </SwipeItem.IconImageSource>
                </SwipeItem>

                <SwipeItem              
                IconImageSource="{mi:MaterialOutlined Icon=Delete,
                                                      IconColor=Red}" />
            </SwipeItems>
    </SwipeView.LeftItems>

</SwipeView>

Light Mode: Light

DarkMode: Dark

Expected behavior Icons must respect the specified colors

Smartphone: Additional context API33 Android 13.0 net8.0-android

AathifMahir commented 6 months ago

Describe the bug SwipeView.SwipeItem.IconImageSourceЖ IconColor and IconBackgroundColor properties does not affect the appearance of the icon

To Reproduce:

<SwipeView>
  <SwipeView.LeftItems>
      <SwipeItems>

          <SwipeItem>
              <SwipeItem.IconImageSource>
                  <mi:MaterialOutlined
                      Icon="Edit"
                      IconBackgroundColor="Magenta"
                      IconColor="Green" />
                  </SwipeItem.IconImageSource>
              </SwipeItem>

              <SwipeItem              
              IconImageSource="{mi:MaterialOutlined Icon=Delete,
                                                    IconColor=Red}" />
          </SwipeItems>
  </SwipeView.LeftItems>

</SwipeView>

Light Mode: Light

DarkMode: Dark

Expected behavior Icons must respect the specified colors

Smartphone: Additional context API33 Android 13.0 net8.0-android

As far as My Testing on this Use Case, I Found that Even If we pass a custom Image Source to SwipeItem with Different Color Property Which Isn't Black or White, The SwipeItem Still Overrides the Image Source Color to Be Black or White Based on AppTheme, On my understanding this should be limitation that applied by Maui Itself or a Bug in Maui

AathifMahir commented 6 months ago

@uom42 I'm closing this issue, if you have any further questions, feel free to comment on this issue.