Yaz Hobooti commited on
Commit
4c18fba
·
1 Parent(s): b1ec916

Improve visual design: black blocks with black text for better contrast

Browse files

- Changed block_background_fill to black (#000000) for contrast
- Updated all text colors to black for better readability
- Set button text to white for contrast against black buttons
- Added dark borders (#333333) for better definition
- Maintains light blue background (#99cfe9) for overall theme

Files changed (1) hide show
  1. pdf_comparator.py +15 -5
pdf_comparator.py CHANGED
@@ -1118,12 +1118,22 @@ def create_demo():
1118
  neutral_hue="blue",
1119
  font=gr.themes.GoogleFont("Inter"),
1120
  ).set(
1121
- body_background_fill="#99cfe9", # New background color
1122
  body_background_fill_dark="#99cfe9",
1123
- block_background_fill="#99cfe9", # Same color for blocks
1124
- block_background_fill_dark="#99cfe9",
1125
- border_color_primary="#B3D9FF", # Soft blue borders
1126
- border_color_primary_dark="#B3D9FF",
 
 
 
 
 
 
 
 
 
 
1127
  )
1128
 
1129
  with gr.Blocks(title="PDF Comparison Tool", theme=custom_theme) as demo:
 
1118
  neutral_hue="blue",
1119
  font=gr.themes.GoogleFont("Inter"),
1120
  ).set(
1121
+ body_background_fill="#99cfe9", # Light blue background
1122
  body_background_fill_dark="#99cfe9",
1123
+ block_background_fill="#000000", # Black blocks for contrast
1124
+ block_background_fill_dark="#000000",
1125
+ border_color_primary="#333333", # Dark borders
1126
+ border_color_primary_dark="#333333",
1127
+ body_text_color="#000000", # Black text
1128
+ body_text_color_dark="#000000",
1129
+ block_label_text_color="#000000", # Black text for labels
1130
+ block_label_text_color_dark="#000000",
1131
+ block_title_text_color="#000000", # Black text for titles
1132
+ block_title_text_color_dark="#000000",
1133
+ input_text_color="#000000", # Black input text
1134
+ input_text_color_dark="#000000",
1135
+ button_text_color="#FFFFFF", # White text on buttons for contrast
1136
+ button_text_color_dark="#FFFFFF",
1137
  )
1138
 
1139
  with gr.Blocks(title="PDF Comparison Tool", theme=custom_theme) as demo: