URI: 
       Fixed palette editor fg. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
  HTML git clone https://git.drkhsh.at/icy_draw.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 3f3400945683f5f1adc29b4572c089487fd79538
   DIR parent 318bbb5764436bade2614990d9b1d92bacccf58a
  HTML Author: Mike Krüger <mkrueger@posteo.de>
       Date:   Tue, 19 Sep 2023 21:29:49 +0200
       
       Fixed palette editor fg.
       
       Diffstat:
         M src/ui/palette_editor.rs            |       6 ++----
       
       1 file changed, 2 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/src/ui/palette_editor.rs b/src/ui/palette_editor.rs
       @@ -255,13 +255,11 @@ pub fn palette_editor_16(
                        pos.x as u32 + pos.y as u32 * items_per_row as u32,
                    );
                    if response.clicked() {
       -                if color < 8 {
       -                    result = Some(Message::SetForeground(color));
       -                }
       +                result = Some(Message::SetForeground(color));
                        response.mark_changed();
                    }
                    if response.secondary_clicked() {
       -                if color < 8 || buffer_type.has_high_bg_colors() {
       +                if color < 8 || buffer_type.has_high_bg_colors() || palette.len() > 16 {
                            result = Some(Message::SetBackground(color));
                        }
                        response.mark_changed();