Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

feat: set activatable widget on action rows #789

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

FineFindus
Copy link
Contributor

Description

Sets the activatable-widget on ActionRows, allowing the user to click the row itself to activate the child widget. This brings it more inline with the default libadwaita ActionRows, e.g. ComboRow. It is only done for non-destructible actions.

Type of change

  • Bugfix (Change which fixes a issue)
  • New feature (Change which adds new functionality)
  • Enhancement (Change which slightly improves existing code)
  • Breaking change (This change will introduce incompatibility with existing functionality)

Changelog

  • Fixed clicking on rows to activate their children

Testing

  • I have tested my changes and verified that they work as expected

How to test the changes

  1. Open the app
  2. Click on an ActionRow, e.g. an OptionRow
  3. Notice how the ColorDialog is opened

@FineFindus FineFindus changed the title feat: set activatable widget on action rows feat: show text-value-toggle tooltip depending on visible value Jun 26, 2023
@FineFindus FineFindus changed the title feat: show text-value-toggle tooltip depending on visible value feat: set activatable widget on action rows Jun 26, 2023
@daudix daudix merged commit 435d515 into GradienceTeam:main Jun 26, 2023
@FineFindus FineFindus deleted the feat/activatable-widget branch June 26, 2023 20:32
daudix added a commit that referenced this pull request Jun 26, 2023
## Description

Changes the `text-value-toggle` tooltip-text to either display `Show
Hex` or `Show Color` depending on which child is currently visible.

Depends on #789

## Type of change

<!-- What type of change does your pull request introduce? Put an `x` in
the box that apply. -->
- [ ] Bugfix (Change which fixes a issue)
- [x] New feature (Change which adds new functionality)
- [ ] Enhancement (Change which slightly improves existing code)
- [ ] Breaking change (This change will introduce incompatibility with
existing functionality)

## Changelog <!-- This is optional, but highly appreciated. -->

- Improved tooltip for toggling color values

## Testing

- [x] I have tested my changes and verified that they work as expected
<!-- Make sure you did this step before marking your PR as ready for
merge. -->

### How to test the changes

<!-- Optional, it can speed up review process if you provide the
information on how to test your changes. -->
1. Open the app
2. View tooltip of the `text-value-toggle` button
3. Click the `text-value-toggle ` button
4. Notice how the tooltip changes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants