Changeset 8b22d44 in mainline for uspace/lib/ui/src/pbutton.c


Ignore:
Timestamp:
2022-05-20T12:05:26Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0415776
Parents:
ea9024d7
git-author:
Jiri Svoboda <jiri@…> (2022-05-19 18:05:08)
git-committer:
Jiri Svoboda <jiri@…> (2022-05-20 12:05:26)
Message:

Scrollbar buttons should not depress in text mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/pbutton.c

    rea9024d7 r8b22d44  
    152152}
    153153
     154/** Set push button flag.s
     155 *
     156 * @param pbutton Push button
     157 * @param flags Flags
     158 */
     159void ui_pbutton_set_flags(ui_pbutton_t *pbutton, ui_pbutton_flags_t flags)
     160{
     161        pbutton->flags = flags;
     162}
     163
    154164/** Set button rectangle.
    155165 *
     
    377387        errno_t rc;
    378388
    379         depressed = pbutton->held && pbutton->inside;
     389        if ((pbutton->flags & ui_pbf_no_text_depress) == 0)
     390                depressed = pbutton->held && pbutton->inside;
     391        else
     392                depressed = false;
    380393
    381394        rc = gfx_set_color(pbutton->res->gc, pbutton->res->wnd_face_color);
Note: See TracChangeset for help on using the changeset viewer.