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

Toggle "Do not disturb" from tray #289

Closed
5 of 6 tasks
stefonarch opened this issue Dec 14, 2021 · 10 comments · Fixed by #290 or #394
Closed
5 of 6 tasks

Toggle "Do not disturb" from tray #289

stefonarch opened this issue Dec 14, 2021 · 10 comments · Fixed by #290 or #394

Comments

@stefonarch
Copy link
Member

stefonarch commented Dec 14, 2021

Actually we have "Basic Settings" and "advanced".
When clicking "Settings" in the tray icon (if unattended notifications is active) users arrive at the position setting, the have to switch to "advanced" to change settings.

  • Toggle settings' positions
  • rename Basic Settings > Position
  • rename Advanced Settings > General (Settings)
  • remove redundant title in "position"
  • change icon?
  • [x ] move spacing and width settings in "Position" "Appearance"
  • Toggle "do not disturb" from tray menu

schermata-12-14-09-02

@tsujan
Copy link
Member

tsujan commented Dec 14, 2021

I agree.

tsujan added a commit that referenced this issue Dec 14, 2021
tsujan added a commit that referenced this issue Dec 14, 2021
@stefonarch
Copy link
Member Author

Actually I'm not fully satisfied yet:
When changing size and spacing users have to switch always between "General" and "Position" to have a preview.

So logically there should be "General Settings" and "Appearance and Position"; the latter should contain Size, Spazing and "show on screen with mouse cursor":

@tsujan
Copy link
Member

tsujan commented Dec 16, 2021

Personally, I have no problem with the changes you suggested. They just need time. Since rearranging the code may introduce new bugs, it should be done with more care; otherwise, there's no obstacle.

@stefonarch stefonarch reopened this Dec 16, 2021
@stefonarch
Copy link
Member Author

Stumbled open this, forgot it. Instead of a new issue I make a note here:
"Do not disturb" is away some clicks, could there be an option in the tray menu to toggle it?

@tsujan
Copy link
Member

tsujan commented Nov 16, 2022

could there be an option in the tray menu to toggle it?

It should be possible — although I don't remember the code ;)

BTW, we changed the layout; didn't we? Why is this still open?

@tsujan
Copy link
Member

tsujan commented Nov 16, 2022

Oh, sorry, I didn't notice that you re-opened it because of your new suggestion.

@stefonarch
Copy link
Member Author

Happened the same to me, why is that open still? ;)

@tsujan tsujan changed the title Better layout for settings Toggle "Do not disturb" from tray Nov 16, 2022
@tsujan
Copy link
Member

tsujan commented Nov 16, 2022

Changed the title.

@stefonarch stefonarch mentioned this issue Jun 18, 2023
@stefonarch
Copy link
Member Author

This is quite messy now to understand, as it's partially achieved and the title has changed as it's about an enhancement (toggle "do not disturb" from systray). I edited the first post.

@stefonarch
Copy link
Member Author

stefonarch commented Jun 18, 2023

I managed to get the item in the right click menu but not the action as m_area is not declared here and it should toggle "do not disturb", being a checkbox.

    // "Do not disturb"
    action = m_trayMenu->addAction(QIcon::fromTheme(QSL("notifications-disabled")), tr("Do not disturb"));
   // connect(action, &QAction::triggered, m_trayMenu, [] {
   // m_area->layout()->setDoNotDisturb(m_doNotDisturb);)}

   // "Options"
    action = m_trayMenu->addAction(QIcon::fromTheme(QSL("preferences-system")), tr("Options"));
    connect(action, &QAction::triggered, m_trayMenu, [] {
        QProcess::startDetached(QSL("lxqt-config-notificationd"), QStringList());
    });

tsujan added a commit that referenced this issue Sep 7, 2024
Closes #289

NOTE: IMO, no other setting should be added to this menu, because it contains an "Options" item.
tsujan added a commit that referenced this issue Sep 7, 2024
Closes #289

NOTE: IMO, no other setting should be added to this menu, because it contains an "Options" item.
@tsujan tsujan closed this as completed in 3f4cc2f Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants