Skip to content

Commit

Permalink
Replace link style from pragma labels to an embedded icon with link
Browse files Browse the repository at this point in the history
Even after having removed the hard-coded style from the link texts, this
combination of hyperlink over regular window background is not giving good
results in some dark theme colours. It is uncommon to have this combination
in GUI applications.

The link in the label has been replaced by a link in an embedded icon.

In order to be still recognisable as a link (apart from the hand icon) the
link hover signal is connected to a slot showing the link in the status bar
for 5 seconds.

See issue sqlitebrowser#1493
  • Loading branch information
mgrojo committed Dec 30, 2018
1 parent b7b6bc8 commit bf5eaa7
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 18 deletions.
5 changes: 5 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3784,3 +3784,8 @@ QString MainWindow::saveOpenTabs()
openTabs.chop(1);
return openTabs;
}

void MainWindow::showStatusMessage5s(QString message)
{
ui->statusbar->showMessage(message, 5000);
}
1 change: 1 addition & 0 deletions src/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ private slots:
void updateDatabaseBusyStatus(bool busy, const QString& user);
void openPreferences();
void closeTab(int index);
void showStatusMessage5s(QString message);
};

#endif
Loading

0 comments on commit bf5eaa7

Please sign in to comment.