web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Changing gallery butto...
Power Apps
Unanswered

Changing gallery button text colour when it is selected

(0) ShareShare
ReportReport
Posted on by 3

I want to change the text colour to grey for the button which is selected. I am using a gallery control with colTabs which each tab has an ID to switch to the appropriate page. I want to signal to the user when they're are on a different page by highlighting the in a different colour. Which I have done, but the text is invisible as it matches the background colour. I'm not to familiar with conditions, whether an Update Context would work or an If statement

Categories:
I have the same question (0)
  • 365-Assist Profile Picture
    2,324 Moderator on at

    I use variables.

    1. Where you want to trigger the color change(with your RGBA color of choice) set a variable

    Set(varButtonColor,RGBA(168, 0, 0, 1))

    2. On the Fill property of the Button enter your variable name

    365Assist_0-1657673117466.png

    --------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

     

  • VMthamo Profile Picture
    3 on at

    Thanks for the quick reply. But can you show me how to do it form start to finish that is. How to have a button gallery to switch between three tabs with buttons. The tabs switch when click but still indicate that your on a specific page, by the colouring. I want the effect to still work like a buttons, but the selected tab will have a different colour and font colour to the the unselected buttons (tabs).  And regarding the unselected tabs they should be a predefined colour and font colour then switch to the different colour when selected.

  • Minor7th Profile Picture
    20 on at

    If you are using the Button inside the Gallery, then you can probably use If(ThisItem.IsSelected, truecolorvalue, falsecolorvalue) for the Color property of the Button.

    See the attached screenshot.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard