Skip to content

Commit

Permalink
Fix password preview font, add some documentation (keepassxreboot#3425)
Browse files Browse the repository at this point in the history
* Fix keepassxreboot#3376. Set font for password preview to Font::fixedFont()
* Add a menu entry opening the shortcuts documentation in the browser
* Fixed duplicate item in CLI documentation
  • Loading branch information
SohamG authored and scoroi committed Nov 10, 2019
1 parent 1b5a025 commit bf1e2ec
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ so please check out your distribution's package list to see if KeePassXC is avai
- YubiKey challenge-response support
- TOTP generation
- CSV import
- Command line interface
- A [Command Line Interface (keepassxc-cli)](./src/cli/keepassxc-cli.1)
- DEP and ASLR hardening
- Stand-alone password and passphrase generator
- Password strength meter
Expand Down
1 change: 1 addition & 0 deletions docs/KEYBINDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Toggle Passwords Hidden | Ctrl + Shift + C
Toggle Usernames Hidden | Ctrl + Shift + B
Focus Search | Ctrl + F
Clear Search | ESC
Show Keyboard Shortcuts | Ctrl + /



Expand Down
1 change: 1 addition & 0 deletions src/gui/EntryPreviewWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
// Entry
m_ui->entryTotpButton->setIcon(filePath()->icon("actions", "chronometer"));
m_ui->entryCloseButton->setIcon(filePath()->icon("actions", "dialog-close"));
m_ui->entryPasswordLabel->setFont(Font::fixedFont());
m_ui->togglePasswordButton->setIcon(filePath()->onOffIcon("actions", "password-show"));
m_ui->toggleEntryNotesButton->setIcon(filePath()->onOffIcon("actions", "password-show"));
m_ui->toggleGroupNotesButton->setIcon(filePath()->onOffIcon("actions", "password-show"));
Expand Down
7 changes: 7 additions & 0 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ MainWindow::MainWindow()
connect(m_ui->actionGettingStarted, SIGNAL(triggered()), SLOT(openGettingStartedGuide()));
connect(m_ui->actionUserGuide, SIGNAL(triggered()), SLOT(openUserGuide()));
connect(m_ui->actionOnlineHelp, SIGNAL(triggered()), SLOT(openOnlineHelp()));
connect(m_ui->actionKeyboardShortcuts, SIGNAL(triggered()), SLOT(openKeyboardShortcuts()));

#ifdef Q_OS_MACOS
setUnifiedTitleAndToolBarOnMac(true);
Expand Down Expand Up @@ -814,6 +815,12 @@ void MainWindow::openOnlineHelp()
{
customOpenUrl("https://keepassxc.org/docs/");
}

void MainWindow::openKeyboardShortcuts()
{
customOpenUrl("https://github.com/keepassxreboot/keepassxc/blob/develop/docs/KEYBINDS.md");
}

void MainWindow::switchToDatabases()
{
if (m_ui->tabWidget->currentIndex() == -1) {
Expand Down
1 change: 1 addition & 0 deletions src/gui/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private slots:
void openGettingStartedGuide();
void openUserGuide();
void openOnlineHelp();
void openKeyboardShortcuts();
void switchToDatabases();
void switchToSettings(bool enabled);
void switchToPasswordGen(bool enabled);
Expand Down
11 changes: 10 additions & 1 deletion src/gui/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
<height>20</height>
</rect>
</property>
<property name="focusPolicy">
Expand Down Expand Up @@ -252,6 +252,7 @@
<addaction name="separator"/>
<addaction name="actionGettingStarted"/>
<addaction name="actionUserGuide"/>
<addaction name="actionKeyboardShortcuts"/>
<addaction name="actionOnlineHelp"/>
<addaction name="separator"/>
<addaction name="actionCheckForUpdates"/>
Expand Down Expand Up @@ -759,6 +760,14 @@
<string>Open User Guide PDF</string>
</property>
</action>
<action name="actionKeyboardShortcuts">
<property name="text">
<string>&amp;Keyboard Shortcuts</string>
</property>
<property name="shortcut">
<string>Ctrl+/</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
Expand Down

0 comments on commit bf1e2ec

Please sign in to comment.