Skip to content

Commit

Permalink
Fix emoji button styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Droid00000 committed Nov 11, 2024
1 parent 2ba8bf3 commit 1fc324d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/frost/data/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@
4 => 0x8da99b,
5 => 0xd4f0ff,
6 => 0x4d94e8,
7 => 0x6bb7ed,
8 => :danger,
9 => :secondary
7 => 0x6bb7ed
}.freeze

# Data used to update the bot status upon startup.
Expand Down
2 changes: 1 addition & 1 deletion src/frost/emojis/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def button_click(data, button)
data.update_message do |builder, components|
components.row do |buttons|
data.message.to_message.buttons.each do |old_button|
buttons.button(style: old_button.custom_id == button ? UI[8] : UI[9],
buttons.button(style: old_button.custom_id == button ? 4 : old_button.style,
emoji: old_button.emoji.id, custom_id: old_button.custom_id)
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/frost/emojis/emoji.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def create_emoji(data)
data.target.emoji.each_with_index do |emoji, position|
break if position > 4

buttons.button(style: UI[9], emoji: emoji.id, custom_id: position)
buttons.button(style: 2, emoji: emoji.id, custom_id: position)
end
end

Expand Down

0 comments on commit 1fc324d

Please sign in to comment.