Skip to content

Conversation

@Guts
Copy link
Member

@Guts Guts commented Sep 16, 2025

image image

@Guts Guts self-assigned this Sep 16, 2025
@github-actions github-actions bot added enhancement New feature or request UI labels Sep 16, 2025
@Guts Guts requested a review from gounux September 16, 2025 18:03
@Guts Guts force-pushed the feature/emoji-picker branch from 6cc4333 to 2c2a9d7 Compare September 16, 2025 18:36
@Guts Guts force-pushed the feature/emoji-picker branch from 8532057 to cf1362c Compare September 17, 2025 06:42
Copy link
Member

@gounux gounux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci beaucoup @Guts, c'est vraiment cool d'avoir des emojis 🔥 🎉 !

J'ai pu checkout en local et tester, 1e passe de review avec quelques questions :

  • si j'ai tout bien tout compris, ce choix de font compatible emojis serait adressé uniquement aux utilisateurs Linux ? Si c'est le cas, j'aurais tendance à ne pas mettre par défaut la font Noto color emoji,

  • est-ce que si la font est changée dans les settings, on irait pas redéclencher l'affichage du widget, de la même manière que si le pseudo ou l'instance est changée, ici ?

# disconnect if instance or nickname have changed
if old_instance != new_instance or old_nickname != new_nickname:
self.disconnect_from_channel(log=self.connected, close_ws=self.connected)
self.on_widget_closed()
self.on_widget_opened()

Comment on lines +144 to +146
def get_font_from_settings(
self, plugin_settings: Optional[PlgSettingsStructure] = None
) -> QFont:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce que cette fonction pourrait trouver sa place directement dans les settings ?

color_admin: str = "#ffa500"
messages_font_family: str = "Noto Color Emoji,10,-1,5,50,0,0,0,0,0"
messages_font_size_pts: int = 10
default_font_emoji_family: str = "Noto Color Emoji"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'on mettrait pas par défaut la font globale des paramètres généraux de QGIS ?

Comment on lines +995 to +996
if isinstance(item, QChatTextTreeWidgetItem):
item.setFont(MESSAGE_COLUMN, self.messages_font)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'on pourrait pas mettre ça dans le init d'un QChatTextTreeWidgetItem ?

self.message = message
self.init_time_and_author()
self.setText(MESSAGE_COLUMN, message.text)
self.setToolTip(MESSAGE_COLUMN, message.text)

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants