Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual row and cell theme coloring request #1782

Closed
tmorgan497 opened this issue May 25, 2022 · 2 comments · Fixed by #2113
Closed

Individual row and cell theme coloring request #1782

tmorgan497 opened this issue May 25, 2022 · 2 comments · Fixed by #2113
Labels
state: pending not addressed yet

Comments

@tmorgan497
Copy link

Is your feature request related to a problem? Please describe.
It appears there's not currently a way to individually apply themes to rows or cells.

Describe the solution you'd like
Add a way to bind item themes to individual cells and rows

Describe alternatives you've considered
I am currently using text colors for this in .add_text(color=...)

Additional context
Example code:

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
dpg.show_viewport()

with dpg.theme() as table_row_bg_green:
    with dpg.theme_component(dpg.mvAll):
        dpg.add_theme_color(
            dpg.mvThemeCol_TableRowBg, (0, 200, 0, 255),
            category=dpg.mvThemeCat_Core)

with dpg.window(width=500, height=500):
    with dpg.table(row_background=True):
        dpg.add_table_column()
        with dpg.table_row(tag='row1'):
            dpg.add_text('row1')
        with dpg.table_row(tag='row2'):
            dpg.add_text('row2')

    dpg.bind_item_theme('row1', table_row_bg_green)

dpg.start_dearpygui()
dpg.destroy_context()
@tmorgan497 tmorgan497 added the state: pending not addressed yet label May 25, 2022
@bandit-masked
Copy link
Collaborator

This feature is not on the roadmap for DPG 1 and since there is a workaround, this issue will be closed.

@v-ein
Copy link
Contributor

v-ein commented Jan 6, 2023

Hmmm... and yet I have a fix for it :)

v-ein added a commit to v-ein/DearPyGui-fixes that referenced this issue Jun 23, 2023
fix: enabled themes on table rows (previously themes could be bound but didn't work). Column themes are not implemented yet. hoffstadt#1782
v-ein added a commit to v-ein/DearPyGui-fixes that referenced this issue Jun 23, 2023
v-ein added a commit to v-ein/DearPyGui-fixes that referenced this issue Jun 23, 2023
fix: enabled themes on table rows (previously themes could be bound but didn't work). Column themes are not implemented yet. hoffstadt#1782
v-ein added a commit to v-ein/DearPyGui-fixes that referenced this issue Jun 23, 2023
hoffstadt pushed a commit that referenced this issue Jan 6, 2024
fix: enabled themes on table rows (previously themes could be bound but didn't work). Column themes are not implemented yet. #1782
SamuMazzi pushed a commit to SamuMazzi/DearPyGui that referenced this issue Jan 31, 2024
fix: enabled themes on table rows (previously themes could be bound but didn't work). Column themes are not implemented yet. hoffstadt#1782
SamuMazzi pushed a commit to SamuMazzi/DearPyGui that referenced this issue Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants