[view] improvement: 'close' button added to the screenshots window

This commit is contained in:
Vinicius Moreira
2022-03-30 18:17:35 -03:00
parent bac69d9f82
commit c66cd464af
12 changed files with 29 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- UI - UI
- only displaying the "Installed" filter when installed packages are available on the table - only displaying the "Installed" filter when installed packages are available on the table
- settings: margin between components reduced [#241](https://github.com/vinifmor/bauh/issues/241) - settings: margin between components reduced [#241](https://github.com/vinifmor/bauh/issues/241)
- "close" button added to the screenshots window (some distributions hide the default "x" on the dialog frame) [#246](https://github.com/vinifmor/bauh/issues/246)
### Fixes ### Fixes
- Arch - Arch

View File

@@ -47,7 +47,22 @@ class ScreenshotsDialog(QDialog):
self.setWindowIcon(QIcon(pkg.model.get_type_icon_path())) self.setWindowIcon(QIcon(pkg.model.get_type_icon_path()))
self.setLayout(QVBoxLayout()) self.setLayout(QVBoxLayout())
self.bt_close = QPushButton(self.i18n['screenshots.bt_close'])
self.bt_close.setObjectName('close')
self.bt_close.clicked.connect(self.close)
self.bt_close.setCursor(QCursor(Qt.PointingHandCursor))
self.upper_buttons = QWidget()
self.upper_buttons.setObjectName('upper_buttons')
self.upper_buttons.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.upper_buttons.setContentsMargins(0, 0, 0, 0)
self.upper_buttons.setLayout(QHBoxLayout())
self.upper_buttons.layout().setAlignment(Qt.AlignRight)
self.upper_buttons.layout().addWidget(self.bt_close)
self.layout().addWidget(self.upper_buttons)
self.layout().addWidget(new_spacer()) self.layout().addWidget(new_spacer())
self.img = QLabel() self.img = QLabel()
self.img.setObjectName('image') self.img.setObjectName('image')
self.layout().addWidget(self.img) self.layout().addWidget(self.img)

View File

@@ -411,6 +411,7 @@ publisher=proveïdor
publisher.verified=verificat publisher.verified=verificat
repository=dipòsit repository=dipòsit
screenshots.bt_back.label=anterior screenshots.bt_back.label=anterior
screenshots.bt_close=Tancar
screenshots.bt_next.label=següent screenshots.bt_next.label=següent
screenshots.download.no_content=No hi ha contingut a mostrar screenshots.download.no_content=No hi ha contingut a mostrar
screenshots.image.loading=Loading screenshots.image.loading=Loading

View File

@@ -410,6 +410,7 @@ publisher=Herausgeber
publisher.verified=Geprüft publisher.verified=Geprüft
repository=Repository repository=Repository
screenshots.bt_back.label=Zurück screenshots.bt_back.label=Zurück
screenshots.bt_close=Schließen
screenshots.bt_next.label=Fortfahren screenshots.bt_next.label=Fortfahren
screenshots.download.no_content=Kein Inhalt screenshots.download.no_content=Kein Inhalt
screenshots.download.no_response=Screenshot nicht gefunden screenshots.download.no_response=Screenshot nicht gefunden

View File

@@ -413,6 +413,7 @@ publisher.verified=verified
publisher=publisher publisher=publisher
repository=repository repository=repository
screenshots.bt_back.label=previous screenshots.bt_back.label=previous
screenshots.bt_close=Close
screenshots.bt_next.label=next screenshots.bt_next.label=next
screenshots.download.no_content=No content to display screenshots.download.no_content=No content to display
screenshots.download.no_response=Image not found screenshots.download.no_response=Image not found

View File

@@ -413,6 +413,7 @@ publisher.verified=verificado
removing=removing removing=removing
repository=repositorio repository=repositorio
screenshots.bt_back.label=anterior screenshots.bt_back.label=anterior
screenshots.bt_close=Cerrar
screenshots.bt_next.label=siguiente screenshots.bt_next.label=siguiente
screenshots.download.no_content=No hay contenido para mostrar screenshots.download.no_content=No hay contenido para mostrar
screenshots.download.no_response=No se encontró la imagen screenshots.download.no_response=No se encontró la imagen

View File

@@ -407,6 +407,7 @@ publisher.verified=vérifié
publisher=publier publisher=publier
repository=dépôt repository=dépôt
screenshots.bt_back.label=précédant screenshots.bt_back.label=précédant
screenshots.bt_close=Fermer
screenshots.bt_next.label=suivant screenshots.bt_next.label=suivant
screenshots.download.no_content=Rien à afficher screenshots.download.no_content=Rien à afficher
screenshots.download.no_response=Pas d'image screenshots.download.no_response=Pas d'image

View File

@@ -413,6 +413,7 @@ publisher=editore
publisher.verified=verificato publisher.verified=verificato
repository=deposito repository=deposito
screenshots.bt_back.label=precedente screenshots.bt_back.label=precedente
screenshots.bt_close=Chiudere
screenshots.bt_next.label=prossimo screenshots.bt_next.label=prossimo
screenshots.download.no_content=Nessun contenuto da visualizzare screenshots.download.no_content=Nessun contenuto da visualizzare
screenshots.download.no_response=Immagine non trovata screenshots.download.no_response=Immagine non trovata

View File

@@ -411,6 +411,7 @@ publisher.verified=verificado
publisher=publicador publisher=publicador
repository=repositório repository=repositório
screenshots.bt_back.label=anterior screenshots.bt_back.label=anterior
screenshots.bt_close=Fechar
screenshots.bt_next.label=próxima screenshots.bt_next.label=próxima
screenshots.download.no_content=Sem conteúdo para exibir screenshots.download.no_content=Sem conteúdo para exibir
screenshots.download.no_response=Imagem não encontrada screenshots.download.no_response=Imagem não encontrada

View File

@@ -410,6 +410,7 @@ publisher=издатель
publisher.verified=Проверенный publisher.verified=Проверенный
repository=Репозиторий repository=Репозиторий
screenshots.bt_back.label=Предыдущий screenshots.bt_back.label=Предыдущий
screenshots.bt_close=закрыть
screenshots.bt_next.label=Следующий screenshots.bt_next.label=Следующий
screenshots.download.no_content=Нет материалов для отображени screenshots.download.no_content=Нет материалов для отображени
screenshots.download.no_response=Изображение не найдено screenshots.download.no_response=Изображение не найдено

View File

@@ -410,6 +410,7 @@ publisher.verified=doğrula
publisher=yayımcı publisher=yayımcı
repository=depo repository=depo
screenshots.bt_back.label=önceki screenshots.bt_back.label=önceki
screenshots.bt_close=Kapatmak
screenshots.bt_next.label=sonraki screenshots.bt_next.label=sonraki
screenshots.download.no_content=Görüntülenecek içerik yok screenshots.download.no_content=Görüntülenecek içerik yok
screenshots.download.no_response=İmaj bulunamadı screenshots.download.no_response=İmaj bulunamadı

View File

@@ -391,6 +391,10 @@ ScreenshotsDialog QAbstractButton[control = "true"] {
min-width: 100px; min-width: 100px;
} }
ScreenshotsDialog QPushButton#close {
min-width: 25px;
}
SettingsWindow TabGroupQt#settings { SettingsWindow TabGroupQt#settings {
min-width: 400px; min-width: 400px;
} }