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

Announcements

News and Announcements icon
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,327 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.

    Screenshot 2022-07-13 112500.png

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard