@@ -164,15 +164,15 @@ def _setup_actions(self):
164164 buttons = []
165165
166166 if self .is_user :
167- edit_btn = self ._create_action_button ("edit " , "Edit message" , self ._handle_edit )
167+ edit_btn = self ._create_action_button ("✏️ " , "Edit message" , self ._handle_edit )
168168 buttons .append (edit_btn )
169169
170- copy_btn = self ._create_action_button ("copy " , "Copy to clipboard" , self ._handle_copy )
170+ copy_btn = self ._create_action_button ("📋 " , "Copy to clipboard" , self ._handle_copy )
171171 buttons .append (copy_btn )
172172
173173 if not self .is_user :
174- speak_btn = self ._create_action_button ("speak " , "Read aloud" , self ._handle_speak )
175- save_btn = self ._create_action_button ("bookmark " , "Save response" , self ._handle_save )
174+ speak_btn = self ._create_action_button ("🔊 " , "Read aloud" , self ._handle_speak )
175+ save_btn = self ._create_action_button ("🔖 " , "Save response" , self ._handle_save )
176176 buttons .extend ([speak_btn , save_btn ])
177177
178178 for btn in buttons :
@@ -181,12 +181,11 @@ def _setup_actions(self):
181181 actions_layout .addStretch ()
182182 self .layout .addLayout (actions_layout )
183183
184- def _create_action_button (self , icon_name , tooltip , callback ):
185- """Create an action button with specified parameters ."""
184+ def _create_action_button (self , emoji , tooltip , callback ):
185+ """Create an action button with emoji instead of icon ."""
186186 btn = QToolButton ()
187- btn .setIcon ( IconManager . get_icon ( icon_name ) )
187+ btn .setText ( emoji )
188188 btn .setToolTip (tooltip )
189- btn .setIconSize (QSize (16 , 16 ))
190189 btn .setFixedSize (24 , 24 )
191190 btn .setCursor (Qt .CursorShape .PointingHandCursor )
192191 btn .clicked .connect (callback )
@@ -783,18 +782,14 @@ def setup_splitter_ui(self):
783782 }
784783 """
785784
786- self .chat_nav_btn = QPushButton (" Chat" )
787- self .chat_nav_btn .setIcon (IconManager .get_icon ("chat" ))
785+ self .chat_nav_btn = QPushButton (" 💬 Chat" )
788786 self .chat_nav_btn .setProperty ("active" , True )
789787
790- self .templates_nav_btn = QPushButton (" Templates" )
791- self .templates_nav_btn .setIcon (IconManager .get_icon ("template" ))
788+ self .templates_nav_btn = QPushButton (" 📋 Templates" )
792789
793- self .history_nav_btn = QPushButton (" History" )
794- self .history_nav_btn .setIcon (IconManager .get_icon ("history" ))
790+ self .history_nav_btn = QPushButton (" 📚 History" )
795791
796- self .files_nav_btn = QPushButton (" Files" )
797- self .files_nav_btn .setIcon (IconManager .get_icon ("file" ))
792+ self .files_nav_btn = QPushButton (" 📁 Files" )
798793
799794 for btn in [self .chat_nav_btn , self .templates_nav_btn ,
800795 self .history_nav_btn , self .files_nav_btn ]:
@@ -810,8 +805,7 @@ def setup_splitter_ui(self):
810805 sidebar_layout .addStretch ()
811806
812807 # Enhanced settings button
813- self .settings_btn = QPushButton (" Settings" )
814- self .settings_btn .setIcon (IconManager .get_icon ("settings" ))
808+ self .settings_btn = QPushButton (" ⚙️ Settings" )
815809 self .settings_btn .setStyleSheet ("""
816810 QPushButton {
817811 background-color: #2b2b2b;
@@ -893,7 +887,7 @@ def setup_splitter_ui(self):
893887 self .session_combo .currentTextChanged .connect (self .change_session )
894888
895889 new_session_btn = QToolButton ()
896- new_session_btn .setIcon ( IconManager . get_icon ( "plus" ) )
890+ new_session_btn .setText ( "➕" )
897891 new_session_btn .setToolTip ("New Session" )
898892 new_session_btn .clicked .connect (self .create_new_session )
899893
@@ -902,14 +896,12 @@ def setup_splitter_ui(self):
902896 model_layout .addWidget (new_session_btn )
903897
904898 # Add buttons to model layout
905- clear_btn = QPushButton ("Clear" )
906- clear_btn .setIcon (IconManager .get_icon ("trash" ))
899+ clear_btn = QPushButton ("🗑️ Clear" )
907900 clear_btn .setStyleSheet (self .get_button_style ("#d32f2f" ))
908901 clear_btn .clicked .connect (self .clear_chat )
909902 model_layout .addWidget (clear_btn )
910903
911- export_btn = QPushButton ("Export" )
912- export_btn .setIcon (IconManager .get_icon ("export" ))
904+ export_btn = QPushButton ("📤 Export" )
913905 export_btn .setStyleSheet (self .get_button_style ("#2196F3" ))
914906 export_btn .clicked .connect (self .export_chat )
915907 model_layout .addWidget (export_btn )
@@ -960,12 +952,12 @@ def setup_splitter_ui(self):
960952 formatting_layout = QHBoxLayout ()
961953
962954 file_btn = QToolButton ()
963- file_btn .setIcon ( IconManager . get_icon ( "attachment" ) )
955+ file_btn .setText ( "📎" )
964956 file_btn .setToolTip ("Attach File" )
965957 file_btn .clicked .connect (self .attach_file )
966958
967959 voice_btn = QToolButton ()
968- voice_btn .setIcon ( IconManager . get_icon ( "microphone" ) )
960+ voice_btn .setText ( "🎤" )
969961 voice_btn .setToolTip ("Voice Input (Ctrl+Shift+V)" )
970962 voice_btn .clicked .connect (self .start_voice_input )
971963
@@ -1002,8 +994,7 @@ def setup_splitter_ui(self):
1002994 }
1003995 """ )
1004996
1005- self .send_button = QPushButton ("Send" )
1006- self .send_button .setIcon (IconManager .get_icon ("send" ))
997+ self .send_button = QPushButton ("📩 Send" )
1007998 self .send_button .setStyleSheet ("""
1008999 QPushButton {
10091000 background-color: #4CAF50;
@@ -1100,16 +1091,13 @@ def setup_splitter_ui(self):
11001091 # Controls for history management
11011092 controls_layout = QHBoxLayout ()
11021093
1103- refresh_btn = QPushButton ("Refresh" )
1104- refresh_btn .setIcon (IconManager .get_icon ("refresh" ))
1094+ refresh_btn = QPushButton ("🔄 Refresh" )
11051095 refresh_btn .clicked .connect (self .load_chat_history )
11061096
1107- clear_history_btn = QPushButton ("Clear History" )
1108- clear_history_btn .setIcon (IconManager .get_icon ("trash" ))
1097+ clear_history_btn = QPushButton ("🗑️ Clear History" )
11091098 clear_history_btn .clicked .connect (self .clear_history )
11101099
1111- export_history_btn = QPushButton ("Export" )
1112- export_history_btn .setIcon (IconManager .get_icon ("export" ))
1100+ export_history_btn = QPushButton ("📤 Export" )
11131101 export_history_btn .clicked .connect (self .export_chat )
11141102
11151103 controls_layout .addWidget (refresh_btn )
@@ -1126,7 +1114,7 @@ def setup_splitter_ui(self):
11261114 self .files_list = QListWidget ()
11271115 files_layout .addWidget (self .files_list )
11281116
1129- upload_btn = QPushButton ("Upload File" )
1117+ upload_btn = QPushButton ("📎 Upload File" )
11301118 upload_btn .clicked .connect (self .attach_file )
11311119 files_layout .addWidget (upload_btn )
11321120
@@ -1149,7 +1137,6 @@ def setup_splitter_ui(self):
11491137 self .splitter .setSizes ([250 , 750 ]) # Slightly wider sidebar
11501138
11511139 main_layout .addWidget (self .splitter )
1152-
11531140 def switch_tab (self , index ):
11541141 # Update active state of navigation buttons
11551142 for i , btn in enumerate ([self .chat_nav_btn , self .templates_nav_btn ,
@@ -1493,6 +1480,7 @@ def clear_chat(self):
14931480 # Clear all message bubbles
14941481 while self .chat_layout .count () > 1 : # Keep the stretch at the end
14951482 item = self .chat_layout .takeAt (0 )
1483+
14961484 def load_chat_history (self ):
14971485 """Load chat history from database"""
14981486 # Clear existing messages
@@ -1602,6 +1590,7 @@ def open_settings(self):
16021590 new_model = self .settings .get ('default_model' )
16031591 if new_model != self .current_model :
16041592 self .current_model = new_model
1593+
16051594 def update_history_list (self ):
16061595 """Update the history list with conversations from the current session"""
16071596 try :
0 commit comments