Changeset 24be331e in mainline


Ignore:
Timestamp:
2023-08-09T14:50:00Z (10 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b6fad9
Parents:
acd7ac2
git-author:
Jiri Svoboda <jiri@…> (2023-08-08 18:49:41)
git-committer:
Jiri Svoboda <jiri@…> (2023-08-09 14:50:00)
Message:

Make select dialog a little wider

To fit device names. What we really need is a narrower font.
Plus the ability to resize these dialogs.

File:
1 edited

Legend:

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

    racd7ac2 r24be331e  
    119119                wparams.rect.p0.x = 0;
    120120                wparams.rect.p0.y = 0;
    121                 wparams.rect.p1.x = 40;
     121                wparams.rect.p1.x = 55;
    122122                wparams.rect.p1.y = 19;
    123123        } else {
    124124                wparams.rect.p0.x = 0;
    125125                wparams.rect.p0.y = 0;
    126                 wparams.rect.p1.x = 300;
     126                wparams.rect.p1.x = 450;
    127127                wparams.rect.p1.y = 235;
    128128        }
     
    175175                rect.p0.x = 3;
    176176                rect.p0.y = 4;
    177                 rect.p1.x = 37;
     177                rect.p1.x = 52;
    178178                rect.p1.y = 15;
    179179        } else {
    180180                rect.p0.x = 10;
    181181                rect.p0.y = 55;
    182                 rect.p1.x = 290;
     182                rect.p1.x = 440;
    183183                rect.p1.y = 180;
    184184        }
     
    201201        /* FIXME: Auto layout */
    202202        if (ui_is_textmode(ui)) {
    203                 rect.p0.x = 10;
     203                rect.p0.x = 16;
    204204                rect.p0.y = 16;
    205                 rect.p1.x = 20;
     205                rect.p1.x = 26;
    206206                rect.p1.y = 17;
    207207        } else {
    208                 rect.p0.x = 55;
     208                rect.p0.x = 130;
    209209                rect.p0.y = 190;
    210                 rect.p1.x = 145;
     210                rect.p1.x = 220;
    211211                rect.p1.y = 218;
    212212        }
     
    231231        /* FIXME: Auto layout */
    232232        if (ui_is_textmode(ui)) {
    233                 rect.p0.x = 22;
     233                rect.p0.x = 28;
    234234                rect.p0.y = 16;
    235                 rect.p1.x = 32;
     235                rect.p1.x = 38;
    236236                rect.p1.y = 17;
    237237        } else {
    238                 rect.p0.x = 155;
     238                rect.p0.x = 230;
    239239                rect.p0.y = 190;
    240                 rect.p1.x = 245;
     240                rect.p1.x = 320;
    241241                rect.p1.y = 218;
    242242        }
Note: See TracChangeset for help on using the changeset viewer.