https://bugs.kde.org/show_bug.cgi?id=472497

            Bug ID: 472497
           Summary: Minimum Height of Theme Selection Dialog Window Too
                    Large
    Classification: Applications
           Product: ghostwriter
           Version: 23.04.3
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: megan.con...@kdemail.net
          Reporter: adityachinch...@gmail.com
  Target Milestone: ---

Created attachment 160445
  --> https://bugs.kde.org/attachment.cgi?id=160445&action=edit
Screenshot showing theme selection dialog window

SUMMARY
The theme selection dialog window is not resizable and too large to fit on a
14" screen with 30px of panel which is always visible. The amount of
information in this window actually doesn't require the whole space. The
minimum size is too large and this doesn't allow the user to see the buttons.
Screenshots are attached. Note that a standard KDE layout might face even more
issues since the title bar is hidden during maximize in my layout. Checking the
code, I found that this is the relevant part of the code:

```
src/theme/themselectiondialog.cpp, line 101 onwards:
    // Find view sizes
    int focush = style()->pixelMetric(QStyle::PM_FocusFrameHMargin);
    int focusv = style()->pixelMetric(QStyle::PM_FocusFrameVMargin);
    int frame = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
    int scrollbar = style()->pixelMetric(QStyle::PM_SliderThickness) +
                    style()->pixelMetric(QStyle::PM_ScrollBarExtent);
    const int spacing = 10;
    const int rowCount = 3;
    const int columnCount = 3;
    QSize viewSize
    (
        ((d->iconWidth + frame + focush + (spacing * 2)) * columnCount) +
scrollbar,
        (d->iconHeight + fontMetrics().height() + frame + focusv + (spacing *
2)) * rowCount
    );
...
    d->themeListWidget->setMinimumSize(viewSize);

```

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Graphics Platform: Wayland

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to