mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-12 07:49:55 -05:00
Minor style fixes (#11445)
* Clean up removed elements in qt stylesheets * Disable main window when saving * Fixed triangle size in group view --------- Co-authored-by: Jonathan White <support@dmapps.us>
This commit is contained in:
parent
fb022cb5e9
commit
2afec91e87
@ -2393,9 +2393,10 @@ bool DatabaseWidget::performSave(QString& errorMessage, const QString& fileName)
|
||||
QPointer<QWidget> focusWidget(qApp->focusWidget());
|
||||
|
||||
// Lock out interactions
|
||||
m_entryView->setDisabled(true);
|
||||
m_groupView->setDisabled(true);
|
||||
m_tagView->setDisabled(true);
|
||||
auto mainWindow = getMainWindow();
|
||||
if (mainWindow) {
|
||||
mainWindow->setDisabled(true);
|
||||
}
|
||||
QApplication::processEvents();
|
||||
|
||||
Database::SaveAction saveAction = Database::Atomic;
|
||||
@ -2435,9 +2436,9 @@ bool DatabaseWidget::performSave(QString& errorMessage, const QString& fileName)
|
||||
}
|
||||
|
||||
// Return control
|
||||
m_entryView->setDisabled(false);
|
||||
m_groupView->setDisabled(false);
|
||||
m_tagView->setDisabled(false);
|
||||
if (mainWindow) {
|
||||
mainWindow->setDisabled(false);
|
||||
}
|
||||
|
||||
if (focusWidget && focusWidget->isVisible()) {
|
||||
focusWidget->setFocus();
|
||||
|
@ -1029,7 +1029,7 @@ namespace Phantom
|
||||
// Expected time (release): 5usecs for regular-sized arrows
|
||||
Q_NEVER_INLINE void drawArrow(QPainter* p, QRect rect, Qt::ArrowType arrowDirection, const QBrush& brush)
|
||||
{
|
||||
const qreal ArrowBaseRatio = 0.9;
|
||||
const qreal ArrowBaseRatio = 1.0;
|
||||
qreal irx, iry, irw, irh;
|
||||
QRectF(rect).getRect(&irx, &iry, &irw, &irh);
|
||||
if (irw < 1.0 || irh < 1.0)
|
||||
|
@ -1,11 +1,11 @@
|
||||
DatabaseWidget:!active, GroupView:!active,
|
||||
DatabaseWidget:!active,
|
||||
DatabaseWidget #groupView:!active, DatabaseWidget #tagView:!active,
|
||||
EntryPreviewWidget QLineEdit:!active, EntryPreviewWidget QTextEdit:!active,
|
||||
EntryPreviewWidget TagsEdit:!active, QStatusBar:!active {
|
||||
background-color: #404042;
|
||||
}
|
||||
|
||||
DatabaseWidget:disabled, GroupView:disabled,
|
||||
DatabaseWidget:disabled,
|
||||
DatabaseWidget #groupView:disabled, DatabaseWidget #tagView:disabled,
|
||||
EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled,
|
||||
EntryPreviewWidget TagsEdit:disabled, QStatusBar:disabled {
|
||||
|
@ -1,11 +1,11 @@
|
||||
DatabaseWidget:!active, GroupView:!active,
|
||||
DatabaseWidget:!active,
|
||||
DatabaseWidget #groupView:!active, DatabaseWidget #tagView:!active,
|
||||
EntryPreviewWidget QLineEdit:!active, EntryPreviewWidget QTextEdit:!active,
|
||||
EntryPreviewWidget TagsEdit:!active, QStatusBar:!active {
|
||||
background-color: #FCFCFC;
|
||||
}
|
||||
|
||||
DatabaseWidget:disabled, GroupView:disabled,
|
||||
DatabaseWidget:disabled,
|
||||
DatabaseWidget #groupView:disabled, DatabaseWidget #tagView:disabled,
|
||||
EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled,
|
||||
EntryPreviewWidget TagsEdit:disabled, QStatusBar:disabled {
|
||||
|
Loading…
Reference in New Issue
Block a user