Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar has no option to display items as text #1105

Closed
billkendrick opened this issue Jul 29, 2020 · 10 comments · Fixed by #1992
Closed

Toolbar has no option to display items as text #1105

billkendrick opened this issue Jul 29, 2020 · 10 comments · Fixed by #1992
Labels
Cosmetics appearance, icons, themes Feature requests a new feature GOOD FIRST ISSUE Used by 24pullrequests.com to suggest issues HELP-WANTED Used by 24pullrequests.com to suggest issues Low relevant, but not urgent Qt Qt bugs, code or features

Comments

@billkendrick
Copy link

billkendrick commented Jul 29, 2020

Introduction

Welcome to the project, if you pick up this Issue because of the
"GOOD FIRST USE" label. You will be mentored through the process if you
want. First the Issue is explained. At the end you will find some
guidance for first contributors. Please do not hesitate to ask questions.
Your solution don't need to be perfect.

Participation or contribution is not recommended unless you are familiar with Back In Time and are an active user. This project is not intended for learning basic Python skills or enhancing your GitHub profile.

Problem

The toolbar in Back In Time shows icons only. While tooltips appear after hovering on them, there appears to be no option to display the tools with text (or as text-only).

Solution

Provide option in the toolbar (available via right-click menu) to display entries as: Icons only, Text only, Text Alongside Icons, and Text Under icons. For comparison see other applications like Kate text editor or Okular image viewer.

Your next steps

  1. If this is your first contribution in this project please introduce
    your self and tell us about your skills, wishes and plans. Also let us
    know how you found the issue and the project.
  2. Read the existing contributors documentation.
  3. We can develop the next steps in the further discussion. Don't hesitate to ask.

Original post from Bill Kendrick (billkendrick)

The toolbar in Back In Time shows icons only. While tooltips appear after hovering on them, there appears to be no option to display the tools with text (or as text-only).

Compare to Kate text editor or Okular image viewer. Their toolbars provide options (available via right-click menu) to display entries as: Icons only, Text only, Text Alongside Icons, and Text Under icons.

Thanks for your consideration!

Version: 1.2.1
Source: Kubuntu 20.04 repositories

@buhtz
Copy link
Member

buhtz commented Dec 7, 2020

Why do you need text there?

I would assume this FeatureRequest is out of project ressources here or you could say it is not important enough compared to other Issues and open PRs. Sorry.

Maybe you can provide a PR?

@billkendrick
Copy link
Author

I would call this "nice-to-have," since the hover option is probably a suitable alternative. I'm used to most other Qt & KDE apps having text labels on buttons, as a configurable option, and it's helpful for new users to understand what a button does before pressing it. 😄

I assumed (sorry!) that it would be trivial, though without having any personal experience developing Qt apps myself. Feel free to close if you deem this "won't-fix". Thanks!

@emtiu emtiu added Qt Qt bugs, code or features Feature requests a new feature Low relevant, but not urgent labels Sep 10, 2022
@emtiu
Copy link
Member

emtiu commented Sep 10, 2022

This functionality existed in the past (verified for backintime 1.0.36 on KDE4 in an old VM), but my current best guess is that it has disappeared in migration to Qt5 with 1.2.0 (see also #167).

I also think it would be nice to have it back, if only to conform better to KDE standards.

@emtiu emtiu added the Cosmetics appearance, icons, themes label Sep 25, 2022
@buhtz buhtz added this to the 1.3.5 / 1.4.0 milestone Mar 19, 2023
@buhtz buhtz added GOOD FIRST ISSUE Used by 24pullrequests.com to suggest issues HELP-WANTED Used by 24pullrequests.com to suggest issues labels Dec 7, 2023
@s4moore
Copy link
Contributor

s4moore commented Jan 2, 2025

Hello, I would to work on this issue.

I have completed one small task already for BIT and found that task through a search for "Good First Issue".

I have some experience in C, Python, HTML / CSS, Javascript, and a little bit of React, and am trying to develop my skills.

Thanks,
Sam

@buhtz
Copy link
Member

buhtz commented Jan 2, 2025

Hello Samuel,
thank you for your efforts. Let me know if I can be of assistance. Don't hesitate to ask.
Regards,
Christian

@s4moore
Copy link
Contributor

s4moore commented Jan 2, 2025

Hi Christian,

Many thanks, is it best to message you here?

@buhtz
Copy link
Member

buhtz commented Jan 3, 2025

Yes. Here or in a PR if you have opened one.

@buhtz buhtz closed this as completed in d6dd61e Jan 5, 2025
buhtz added a commit that referenced this issue Jan 18, 2025
Related to #1105

---------

Co-authored-by: Samuel Moore <samuelallister@outlook.com>
Co-authored-by: Christian Buhtz <c.buhtz@posteo.jp>
@daviewales
Copy link
Contributor

I'm getting this error since commit 9f7891e:

Traceback (most recent call last):
  File "/usr/share/backintime/qt/app.py", line 2459, in <module>
    mainWindow = MainWindow(cfg, appInstance, qapp)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/backintime/qt/app.py", line 135, in __init__
    self._create_main_toolbar()
  File "/usr/share/backintime/qt/app.py", line 796, in _create_main_toolbar
    Qt.ToolButtonStyle(StateData().toolbar_button_style))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StateData' object has no attribute 'toolbar_button_style'

@buhtz
Copy link
Member

buhtz commented Feb 9, 2025

Mhm... it should be there.

backintime/qt/statedata.py

Lines 361 to 372 in c89805b

@property
def toolbar_button_style(self) -> int:
"""Style of icons for the main toolbar.
Returns:
Style value as integer (default: 0 as ``ToolButtonIconOnly``)
"""
try:
return self['gui']['mainwindow']['toolbar_button_style']
except KeyError:
self.toolbar_button_style = 0
return self.toolbar_button_style

Maybe you somehow mixed some versions of the code? Are you on the latest dev?

@daviewales
Copy link
Contributor

Sorry, I must have mixed something up. It's working now.

buhtz added a commit that referenced this issue Feb 13, 2025
# Summary
This is a release candidate. Please report if you use it even if there are no new problems.

This version is set to be released with Debian 13 (Trixie) this early summer and will remain available for the long lifetime of that Debian version.
EncFS, used for encrypted profiles, has been marked as deprecated and is  schedule for removal in 2026. The Smart & Auto remove GUI has been reorganized and renamed into "Remove & Retention", with improvements to the user manual section. Its behavior remains unchange. An offset minute can now be configured for hourly schedule options. Some config file fields have been moved to a newly introduced state file. License and copyright information is now provided in machine-readable SPDX format, following the REUSE standard.

# Contributors
This version received extensive support from contributors (in alphabetical order):

 - @bremnere
 - David Gibbs @fallingrock
 - graysky @graysky2
 - Samuel More @mooresamuel
 - Iván Rodríguez @ivanrdgz03
 - Peter Sevens @sevens
 - David Wales @daviewales
 - Dylan Wilson @dylan-wilson-usq
 - Also not to be forgotten are the many people who supported the project by testing it, providing feedback, reporting issues, and analyzing problems.

# Known major issues open
- qt_probing.py may hang with high CPU usage when running Back In Time as root via cron (#1592)
- File permissions handling and therefore possible non-differential backups (#988 & #994)

# Changelog
* Changed: More clear and intense warning about EncFS deprecation and removal (#1904)
* Changed: Updated desktop entry files
* Changed: Move several values from config file into new introduce state file ($XDG_STATE_HOME/backintime.json)
* Changed: Completed license information to conform the REUSE.software and SPDX standards.
* Breaking Change: Auto-remove rules "Free inodes" and "Free space" disabled by default (#1976)
* Fix!: Smart-remove rule "Keep one snapshots per week or the last week" use calendar weeks
* Fix: The width of the fourth column in files view is now saved
* Fix: Snapshot compare copy symlink as symlink (#1902) (Peter Sevens @sevens)
* Fix: Crash when comparing a snapshot with a symlink pointing to a nonexistent target (Peter Sevens @sevens)
* Fix: Crash (KeyError) opening language setup dialog with unknown locale/language
* Feature: Open user manual (local if available otherwise online) via Help menu
* Feature: Toolbar context menu to display the buttons in different combinations with icons and text (#1105, #2002) (Samuel Moore @s4moore)
* Feature: Add offset minutes to hourly schedules (David Gibbs @fallingrock)
* Doc: Remove & Retention (formally known as Auto-/Smart-Remove) with improved GUI and user manual section (#2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmetics appearance, icons, themes Feature requests a new feature GOOD FIRST ISSUE Used by 24pullrequests.com to suggest issues HELP-WANTED Used by 24pullrequests.com to suggest issues Low relevant, but not urgent Qt Qt bugs, code or features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants