fix: resolve text visibility issues in both light and dark modes#126
Open
Kushan20070126 wants to merge 4 commits intoeccentriccoder01:masterfrom
Open
fix: resolve text visibility issues in both light and dark modes#126Kushan20070126 wants to merge 4 commits intoeccentriccoder01:masterfrom
Kushan20070126 wants to merge 4 commits intoeccentriccoder01:masterfrom
Conversation
- Force text colors for all Streamlit components using !important - Separate CSS blocks for light and dark themes with explicit color definitions - Fix input field, card, and container styling for both themes - Ensure Plotly chart text and sidebar elements are visible - Add debug function for text visibility testing
Thanks for creating a PR for your Issue!
|
Replaced hardcoded color values in UI components with CSS variables for theme consistency. Added a helper function to apply theme-specific CSS, supporting Light, Dark, and Auto modes. Improved synchronization between sidebar dark mode toggle and settings, ensuring UI updates immediately when theme changes. Updated metric and card styles to use CSS variables for better maintainability and appearance across themes.
…alues, add slider CSS; reapply theme on settings save; safe-import transformers and BytesIO to avoid NameErrors
Introduces checks and error handling when initializing WordAnalyzer and loading transformers models and pipelines. Updates ensemble prediction and risk indicator logic to use session_state instances with exception handling, improving robustness against missing dependencies and runtime errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?