Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131723

Vector or high-res icons as standard ones

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None

    Description

      Please make the icons returned by QStyle::standardIcon vector or of a better resolution.

      Below, I list the sizes of the icons available for me (the file used to make the list is attached):

      • `SP_TitleBarMenuButton`: 16×16, 64×64
      • `SP_TitleBarMinButton`: 10×10, 16×16, 20×20, 32×32, 48×48, 64×64
      • `SP_TitleBarMaxButton`: 16×16, 32×32, 48×48
      • `SP_TitleBarCloseButton`: 10×10, 16×16, 20×20, 32×32, 48×48, 64×64
      • `SP_TitleBarNormalButton`: 16×16, 32×32
      • `SP_TitleBarShadeButton`: 16×16, 32×32, 48×48
      • `SP_TitleBarUnshadeButton`: 16×16, 32×32, 48×48
      • `SP_TitleBarContextHelpButton`: 16×16, 32×32, 48×48
      • `SP_DockWidgetCloseButton`: 10×10, 16×16, 20×20, 32×32, 48×48, 64×64
      • `SP_MessageBoxInformation`: 16×16, 22×22, 64×64
      • `SP_MessageBoxWarning`: 16×16, 22×22, 64×64
      • `SP_MessageBoxCritical`: 16×16, 22×22, 64×64
      • `SP_MessageBoxQuestion`: 16×16, 22×22, 64×64
      • `SP_DesktopIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_TrashIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_ComputerIcon`: 16×16, 22×22, 64×64
      • `SP_DriveFDIcon`: 16×16, 32×32, 128×128
      • `SP_DriveHDIcon`: 16×16, 22×22, 64×64
      • `SP_DriveCDIcon`: 16×16, 22×22, 64×64
      • `SP_DriveDVDIcon`: 16×16, 22×22, 64×64
      • `SP_DriveNetIcon`: 16×16, 32×32, 128×128
      • `SP_DirOpenIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_DirClosedIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_DirLinkIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_FileIcon`: 16×16, 22×22, 32×32, 64×64
      • `SP_FileLinkIcon`: 16×16, 22×22, 32×32, 64×64
      • `SP_ToolBarHorizontalExtensionButton`: 8×8, 16×16, 32×32, 128×128
      • `SP_ToolBarVerticalExtensionButton`: 5×5, 10×10, 20×20, 80×80
      • `SP_FileDialogStart`: 16×16, 32×32, 128×128
      • `SP_FileDialogEnd`: 16×16, 32×32, 128×128
      • `SP_FileDialogToParent`: 16×16, 22×22, 24×24, 32×32
      • `SP_FileDialogNewFolder`: 16×16, 22×22, 24×24, 32×32
      • `SP_FileDialogDetailedView`: 16×16, 22×22, 24×24, 32×32
      • `SP_FileDialogInfoView`: 16×16, 32×32, 128×128
      • `SP_FileDialogContentsView`: 16×16, 32×32, 128×128
      • `SP_FileDialogListView`: 16×16, 22×22, 24×24, 32×32
      • `SP_FileDialogBack`: 16×16, 22×22, 24×24, 32×32
      • `SP_DirIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_DialogOkButton`: 16×16, 22×22, 32×32
      • `SP_DialogCancelButton`: 16×16, 22×22, 24×24, 32×32
      • `SP_DialogHelpButton`: 16×16, 22×22, 24×24
      • `SP_DialogOpenButton`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_DialogSaveButton`: 16×16, 22×22, 24×24, 32×32
      • `SP_DialogCloseButton`: 16×16, 22×22, 24×24, 32×32
      • `SP_DialogApplyButton`: 16×16, 22×22, 24×24, 32×32
      • `SP_DialogResetButton`: 16×16, 22×22, 24×24
      • `SP_DialogDiscardButton`: 16×16, 22×22, 24×24, 32×32
      • `SP_DialogYesButton`: 16×16, 22×22, 32×32
      • `SP_DialogNoButton`: 16×16, 22×22, 24×24, 32×32
      • `SP_ArrowUp`: 16×16, 22×22, 24×24, 32×32
      • `SP_ArrowDown`: 16×16, 22×22, 24×24, 32×32
      • `SP_ArrowLeft`: 16×16, 22×22, 24×24, 32×32
      • `SP_ArrowRight`: 16×16, 22×22, 24×24, 32×32
      • `SP_ArrowBack`: 16×16, 22×22, 24×24, 32×32
      • `SP_ArrowForward`: 16×16, 22×22, 24×24, 32×32
      • `SP_DirHomeIcon`: 16×16, 22×22, 32×32, 48×48, 64×64, 96×96
      • `SP_CommandLink`: 16×16, 22×22, 24×24, 32×32
      • `SP_BrowserReload`: 16×16, 22×22, 24×24, 32×32
      • `SP_BrowserStop`: 16×16, 22×22, 24×24
      • `SP_MediaPlay`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaStop`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaPause`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaSkipForward`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaSkipBackward`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaSeekForward`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaSeekBackward`: 16×16, 22×22, 24×24, 32×32
      • `SP_MediaVolume`: 16×16, 22×22, 24×24
      • `SP_MediaVolumeMuted`: 16×16, 22×22, 24×24
      • `SP_LineEditClearButton`: 16×16, 22×22
      • `SP_TabCloseButton`: 16×16, 32×32, 128×128

      It appears that the newer the icon, the better resolution it has. Still, no icon is larger than 128×128 px. Not even `SP_TitleBarMenuButton`, which represents the Qt logo.

      I must, however, agree that QIcon::ThemeIcon partially takes over the Standard Pixmaps:

      • `SP_MessageBoxInformation` → `DialogInformation`
      • `SP_MessageBoxWarning` → `DialogWarning`
      • `SP_MessageBoxCritical` → `DialogError`
      • `SP_MessageBoxQuestion` → `DialogQuestion`
      • `SP_ComputerIcon` → `Computer`
      • `SP_DriveHDIcon` → `DriveHarddisk`
      • `SP_DriveCDIcon` → `DriveOptical`
      • `SP_DriveDVDIcon` → `DriveOptical` as well
      • `SP_DriveNetIcon` → `NetworkWired` and `NetworkWireless`
      • `SP_DirOpenIcon` → `FolderOpen`
      • `SP_MediaPlay` → `MediaPlaybackStart`
      • `SP_MediaStop` → `MediaPlaybackStop`
      • `SP_MediaPause` → `MediaPlaybackPause`
      • `SP_MediaSkipForward` → `MediaSkipForward`
      • `SP_MediaSkipBackward` → `MediaSkipBackward`
      • `SP_MediaSeekForward` → `MediaSeekForward`
      • `SP_MediaSeekBackward` → `MediaSeekBackward`
      • `SP_MediaVolume` → `AudioVolumeHigh`, `AudioVolumeLow`, and `AudioVolumeMedium`
      • `SP_MediaVolumeMuted` → `AudioVolumeMuted`
      • `SP_LineEditClearButton` → `EditClear`

      The correspondence is far from complete, though.

      There are similar reports about the icons in QMessageBox (QTBUG-52622) and in the Qt Tools interface (QTBUG-71217). The first one is resolved.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            stsav012 Anton Yablokov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes