Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ These shortcuts are available in GUI mode:
| <kbd>Ctrl</kbd> + <kbd>Backspace</kbd> | Cancel current selection |
| <kbd>Return</kbd> | Upload the selection to Imgur |
| <kbd>Spacebar</kbd> | Toggle visibility of sidebar with options of the selected tool, color picker for the drawing color and history menu |
| <kbd>G</kbd> | Starts the color picker |
| Right Click | Show the color wheel |
| Mouse Wheel | Change the tool's thickness |
| <kbd>Print screen</kbd> | Capture Screen |
Expand Down
1 change: 1 addition & 0 deletions flameshot.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@
;TYPE_SELECT_ALL=Ctrl+A
;TYPE_TEXT=T
;TYPE_TOGGLE_PANEL=Space
;TYPE_GRAB_COLOR=G
;TYPE_UNDO=Ctrl+Z
16 changes: 9 additions & 7 deletions packaging/rpm/fedora/flameshot.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#
# spec file for package flameshot on fedora, rehl
# spec file for package flameshot on fedora, rhel
#
Name: flameshot
Version: 13.0.0
Release: 1%{?dist}
Name: flameshot
Version: 13.1.0
Release: 2%{?dist}
License: GPLv3+ and ASL 2.0 and GPLv2 and LGPLv3 and Free Art
Summary: Powerful yet simple to use screenshot software
URL: https://github.com/flameshot-org/flameshot
URL: https://github.com/flameshot-org/flameshot
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Vendor: Flameshot

BuildRequires: cmake >= 3.13.0
BuildRequires: gcc-c++ >= 7
Expand All @@ -25,7 +26,6 @@ BuildRequires: cmake(Qt6Network) >= 6.0.0
BuildRequires: cmake(Qt6Svg) >= 6.0.0
BuildRequires: cmake(Qt6Widgets) >= 6.0.0


Requires: hicolor-icon-theme
Requires: qt6-qtbase >= 6.0.0
Requires: qt6-qttools >= 6.0.0
Expand All @@ -47,7 +47,6 @@ Features:
* Easy to use.
* In-app screenshot edition.
* DBus interface.
* Upload to Imgur

%prep
%autosetup -p1
Expand Down Expand Up @@ -97,6 +96,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_mandir}/man1/%{name}.1*

%changelog
* Sat Aug 16 2025 Elliott Tallis <tallis.elliott@gmail.com> - 13.1.0-2
- Minor spec file tweaks

* Sun Aug 13 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.1.0
- Update for v13.1.0 release

Expand Down
14 changes: 8 additions & 6 deletions packaging/rpm/opensuse/flameshot.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#
# spec file for package flameshot on opensuse leap 15.x
#
Name: flameshot
Version: 13.0.0
Release: 1
Name: flameshot
Version: 13.1.0
Release: 2
License: GPLv3+ and ASL 2.0 and GPLv2 and LGPLv3 and Free Art
Summary: Powerful yet simple to use screenshot software
URL: https://github.com/flameshot-org/flameshot
URL: https://github.com/flameshot-org/flameshot
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Vendor: Flameshot

BuildRequires: cmake >= 3.13.0
BuildRequires: gcc-c++ >= 7
Expand All @@ -24,7 +25,6 @@ BuildRequires: cmake(Qt6Network) >= 6.0.0
BuildRequires: cmake(Qt6Svg) >= 6.0.0
BuildRequires: cmake(Qt6Widgets) >= 6.0.0


Requires: hicolor-icon-theme
Requires: qt6-base >= 6.0.0
Requires: qt6-tools >= 6.0.0
Expand All @@ -46,7 +46,6 @@ Features:
* Easy to use.
* In-app screenshot edition.
* DBus interface.
* Upload to Imgur

%prep
%autosetup -p1
Expand Down Expand Up @@ -95,6 +94,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_mandir}/man1/%{name}.1*

%changelog
* Sat Aug 16 2025 Elliott Tallis <tallis.elliott@gmail.com> - 13.1.0-2
- Minor spec file tweaks

* Sun Aug 15 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.1.0
- Update for v13.1.0 release

Expand Down
1 change: 1 addition & 0 deletions src/config/shortcutswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ void ShortcutsWidget::loadShortcuts()

// additional tools that don't have their own buttons
appendShortcut("TYPE_TOGGLE_PANEL", tr("Toggle side panel"));
appendShortcut("TYPE_GRAB_COLOR", tr("Grab a color from the screen"));
appendShortcut("TYPE_RESIZE_LEFT", tr("Resize selection left 1px"));
appendShortcut("TYPE_RESIZE_RIGHT", tr("Resize selection right 1px"));
appendShortcut("TYPE_RESIZE_UP", tr("Resize selection up 1px"));
Expand Down
1 change: 1 addition & 0 deletions src/utils/confighandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ static QMap<QString, QSharedPointer<KeySequence>> recognizedShortcuts = {
SHORTCUT("TYPE_REDO" , "Ctrl+Shift+Z" ),
SHORTCUT("TYPE_TEXT" , "T" ),
SHORTCUT("TYPE_TOGGLE_PANEL" , "Space" ),
SHORTCUT("TYPE_GRAB_COLOR" , "G" ),
SHORTCUT("TYPE_RESIZE_LEFT" , "Shift+Left" ),
SHORTCUT("TYPE_RESIZE_RIGHT" , "Shift+Right" ),
SHORTCUT("TYPE_RESIZE_UP" , "Shift+Up" ),
Expand Down
14 changes: 14 additions & 0 deletions src/widgets/capture/capturewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,13 @@ void CaptureWidget::onGridSizeChanged(int size)
repaint();
}

void CaptureWidget::startColorGrab()
{
if (m_sidePanel) {
m_sidePanel->startColorGrab();
}
}

void CaptureWidget::showxywh()
{
m_xywhDisplay = true;
Expand Down Expand Up @@ -1210,6 +1217,10 @@ void CaptureWidget::initPanel()
&SidePanelWidget::togglePanel,
m_panel,
&UtilityPanel::toggle);
connect(
m_sidePanel, &SidePanelWidget::showPanel, m_panel, &UtilityPanel::show);
connect(
m_sidePanel, &SidePanelWidget::hidePanel, m_panel, &UtilityPanel::hide);
connect(m_sidePanel,
&SidePanelWidget::displayGridChanged,
this,
Expand Down Expand Up @@ -1577,6 +1588,9 @@ void CaptureWidget::initShortcuts()
newShortcut(QKeySequence(ConfigHandler().shortcut("TYPE_TOGGLE_PANEL")),
this,
SLOT(togglePanel()));
newShortcut(QKeySequence(ConfigHandler().shortcut("TYPE_GRAB_COLOR")),
this,
SLOT(startColorGrab()));

newShortcut(QKeySequence(ConfigHandler().shortcut("TYPE_RESIZE_LEFT")),
m_selection,
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/capture/capturewidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ private slots:
void onDisplayGridChanged(bool display);
void onGridSizeChanged(int size);

void startColorGrab();

public:
void removeToolObject(int index = -1);
void showxywh();
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/panel/sidepanelwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void SidePanelWidget::startColorGrab()
this,
&SidePanelWidget::onColorGrabAborted);

emit togglePanel();
emit hidePanel();
m_colorGrabber->startGrabbing();
}

Expand All @@ -196,7 +196,7 @@ void SidePanelWidget::onTemporaryColorUpdated(const QColor& color)

void SidePanelWidget::finalizeGrab()
{
emit togglePanel();
emit showPanel();
}

void SidePanelWidget::updateColorNoWheel(const QColor& c)
Expand Down
4 changes: 3 additions & 1 deletion src/widgets/panel/sidepanelwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ class SidePanelWidget : public QWidget
void colorChanged(const QColor& color);
void toolSizeChanged(int size);
void togglePanel();
void showPanel();
void hidePanel();
void displayGridChanged(bool display);
void gridSizeChanged(int size);

public slots:
void onToolSizeChanged(int tool);
void onColorChanged(const QColor& color);
void startColorGrab();

private slots:
void startColorGrab();
void onColorGrabFinished();
void onColorGrabAborted();
void onTemporaryColorUpdated(const QColor& color);
Expand Down
6 changes: 6 additions & 0 deletions src/widgets/panel/utilitypanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ void UtilityPanel::pushWidget(QWidget* widget)

void UtilityPanel::show()
{
if (!m_internalPanel->isHidden()) {
return;
}
setAttribute(Qt::WA_TransparentForMouseEvents, false);
m_showAnimation->setStartValue(QRect(-width(), 0, 0, height()));
m_showAnimation->setEndValue(QRect(0, 0, width(), height()));
Expand All @@ -95,6 +98,9 @@ void UtilityPanel::show()

void UtilityPanel::hide()
{
if (m_internalPanel->isHidden()) {
return;
}
setAttribute(Qt::WA_TransparentForMouseEvents);
m_hideAnimation->setStartValue(QRect(0, 0, width(), height()));
m_hideAnimation->setEndValue(QRect(-width(), 0, 0, height()));
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/panel/utilitypanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class UtilityPanel : public QWidget
void setToolWidget(QWidget* weight);
void clearToolWidget();
void pushWidget(QWidget* widget);
void hide();
void show();
void fillCaptureTools(
const QList<QPointer<CaptureTool>>& captureToolObjectsHistory);
void setActiveLayer(int index);
Expand All @@ -40,6 +38,8 @@ class UtilityPanel : public QWidget

public slots:
void toggle();
void hide();
void show();
void slotButtonDelete(bool clicked);
void onCurrentRowChanged(int currentRow);

Expand Down
Loading