Ticket #2042: printers.diff

File printers.diff, 2.8 KB (added by stpere, 16 years ago)
  • src/preferences/print/PrintersWindow.cpp

     
    194194
    195195        // Resize all buttons to maximum width and align them to the right
    196196    float xPos = printersBox->Bounds().Width()-boxInset-maxWidth;
    197     addButton->MoveTo(xPos, boxInset +5);
     197    addButton->MoveTo(xPos, boxInset +8);
    198198    addButton->ResizeTo(maxWidth, addButton->Bounds().Height());
    199199
    200     fRemove->MoveTo(xPos, boxInset + addButton->Bounds().Height() + boxInset +5);
     200    fRemove->MoveTo(xPos, boxInset + addButton->Bounds().Height() + boxInset +8);
    201201    fRemove->ResizeTo(maxWidth, fRemove->Bounds().Height());
    202202
    203203    fMakeDefault->MoveTo(xPos, boxInset + addButton->Bounds().Height() +
    204204                                    boxInset + fRemove->Bounds().Height() +
    205                                     boxInset +5);
     205                                    boxInset +8);
    206206    fMakeDefault->ResizeTo(maxWidth, fMakeDefault->Bounds().Height());
    207207
    208208        // Disable all selection-based buttons
     
    210210    fMakeDefault->SetEnabled(false);
    211211
    212212        // Create listview with scroller
    213     BRect listBounds(boxInset, boxInset+5, fMakeDefault->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,
    214                     printersBox->Bounds().Height()-boxInset);
     213    BRect listBounds(boxInset, boxInset+8, fMakeDefault->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,
     214                    printersBox->Bounds().Height()-boxInset-3);
    215215    fPrinterListView = new PrinterListView(listBounds);
    216216    BScrollView* pscroller = new BScrollView("printer_scroller", fPrinterListView,
    217217                                B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER);
     
    243243
    244244        // Resize all buttons to maximum width and align them to the right
    245245    xPos = fJobsBox->Bounds().Width()-boxInset-maxWidth;
    246     cancelButton->MoveTo(xPos, boxInset +5);
     246    cancelButton->MoveTo(xPos, boxInset +8);
    247247    cancelButton->ResizeTo(maxWidth, cancelButton->Bounds().Height());
    248248
    249     restartButton->MoveTo(xPos, boxInset + cancelButton->Bounds().Height() + boxInset +5);
     249    restartButton->MoveTo(xPos, boxInset + cancelButton->Bounds().Height() + boxInset +8);
    250250    restartButton->ResizeTo(maxWidth, restartButton->Bounds().Height());
    251251
    252252        // Disable all selection-based buttons
     
    254254    restartButton->SetEnabled(false);
    255255
    256256        // Create listview with scroller
    257     listBounds = BRect(boxInset, boxInset+5, cancelButton->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,
    258                     fJobsBox->Bounds().Height()-boxInset);
     257    listBounds = BRect(boxInset, boxInset+8, cancelButton->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,
     258                    fJobsBox->Bounds().Height()-boxInset-3);
    259259    fJobListView = new JobListView(listBounds);
    260260    BScrollView* jscroller = new BScrollView("jobs_scroller", fJobListView,
    261261                                B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER);