Commit Graph

48542 Commits

Author SHA1 Message Date
Kovid Goyal 43338d6123 More work on profiles 2024-02-21 17:21:24 +05:30
Kovid Goyal 592dad1194 Keyboard shortcut to show profiles 2024-02-20 21:48:28 +05:30
Kovid Goyal db3401b02b More work on profiles 2024-02-20 21:05:52 +05:30
Kovid Goyal bb2b974f77 Merge branch 'all-actions-add-icons' of https://github.com/un-pogaz/calibre 2024-02-20 14:35:29 +05:30
un-pogaz 3159f46b62 Add icons to actions in last section 2024-02-20 09:24:32 +01:00
Kovid Goyal 97cf6bc8d2 Merge branch 'master' of https://github.com/cbhaley/calibre 2024-02-20 08:27:23 +05:30
Charles Haley 750635615f Don't escape the ampersand in the shortcut name.
Dealing with ampersand escapes is really a bother!
2024-02-19 16:26:12 +00:00
Kovid Goyal 1131cd94b6 Merge branch 'master' of https://github.com/cbhaley/calibre 2024-02-19 20:39:06 +05:30
Charles Haley e95d015789 Escape ampersands in the preference sections menu. 2024-02-19 15:07:29 +00:00
Kovid Goyal d6a13440be ... 2024-02-19 18:55:11 +05:30
Kovid Goyal 51b3d8e31d Merge branch 'interface-action-library-drop' of https://github.com/un-pogaz/calibre 2024-02-19 18:54:03 +05:30
Kovid Goyal 50ac6aa71c Merge branch 'bookstore-chooser-fix' of https://github.com/qykth-git/calibre 2024-02-19 18:41:13 +05:30
Kovid Goyal 12e2b392ea ... 2024-02-19 18:33:11 +05:30
Kovid Goyal 60bc1b2b68 Merge branch 'all-actions-all-menu' of https://github.com/un-pogaz/calibre 2024-02-19 18:32:43 +05:30
Kovid Goyal 1add1a057f Rename Preferences dialogs to sections 2024-02-19 18:27:54 +05:30
Kovid Goyal 7bc2a5a911 Merge branch 'master' of https://github.com/cbhaley/calibre 2024-02-19 18:27:13 +05:30
Charles Haley 181b9a3bac Add the individual preference dialogs to the preferences menu. Reasons:
- They are more accessible via the keyboard.
- The menu actions can be accessed by plugins
- Each individual dialog can be given a shortcut
2024-02-19 12:46:27 +00:00
YOKOTA Hiroshi c530817e96 Fix book store chooser error
Book store chooser dialog can't open.
This dialog was opened by "Get Books" -> "Choose Stores" from tool button bar.

----
Traceback (most recent call last):
  File ".../calibre/gui2/actions/store.py", line 116, in choose
    d = StoreChooserDialog(self.gui)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../calibre/gui2/store/config/chooser/chooser_dialog.py", line 21, in __init__
    self.config_widget = StoreChooserWidget()
                         ^^^^^^^^^^^^^^^^^^^^
  File ".../calibre/gui2/store/config/chooser/chooser_widget.py", line 15, in __init__
    self.setupUi(self)
  File ".../calibre/gui2/store/config/chooser/chooser_widget_ui.py", line 35, in setupUi
    self.results_view = ResultsView(parent=Form)
                        ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ResultsView.__init__() got an unexpected keyword argument 'parent'
----
2024-02-19 20:50:02 +09:00
un-pogaz 101423c3df show menu if the plugin self implement a menu without action_add_menu 2024-02-19 08:27:56 +01:00
Kovid Goyal 6be3293166 More work on reader profiles 2024-02-19 10:33:10 +05:30
Kovid Goyal 32a4423efb Remove xml:lang from <description> for <release> as well 2024-02-19 07:54:49 +05:30
un-pogaz 37d4946e97 Create subclass InterfaceActionWithLibraryDrop (DRY)
All actual implementation of `accepts_drops` for built-in InterfaceAction
are a "from_library" drag-and-drop. Create a subclass that implement the
relatives methods.
2024-02-18 20:43:07 +01:00
Kovid Goyal 49e7bf5c97 pep8 2024-02-18 21:20:56 +05:30
Kovid Goyal 52f80efdb9 Merge branch 'master' of https://github.com/cbhaley/calibre 2024-02-18 21:20:45 +05:30
Kovid Goyal d10cdf8a86 Add <developer> tag to appstream metadata
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-developer
2024-02-18 20:25:13 +05:30
Charles Haley c442fbfbb6 Add an action to show a menu all available GUI and plugin actions.
Use case:
- Action discovery. Eventually this action could be added to the default toolbar built by the welcome wizard.
- Ease of access to infrequently used actions.
- Shows shortcuts in most cases.
2024-02-18 13:50:47 +00:00
Charles Haley c48220468a Clean up code as the problems with placement and arrows have gone away with new Qt versions. 2024-02-18 13:48:01 +00:00
Kovid Goyal 34743e4807 Fix #2054125 [ValueError: Failed to export image as JPEG with error: Image is empty](https://bugs.launchpad.net/calibre/+bug/2054125) 2024-02-17 10:10:48 +05:30
Kovid Goyal be8082790a Download remote background images and cache 2024-02-16 11:34:06 +05:30
Kovid Goyal e15ab16153 Remove workaround for Qt file:// URL based images not rendering on Windows
The proper fix from Qt has been patched into the calibre windows build.
2024-02-16 09:33:00 +05:30
Kovid Goyal 828dbe5ee4 Merge branch 'patch-1' of https://github.com/yyolk/calibre 2024-02-16 08:28:55 +05:30
Joseph Chiocchi 0590429d49 Update .gitattributes - mark *.recipe as linguist-language=python
Sometimes syntax highlighting is picked up correctly on GitHub which uses linguist[^1], when the `*.recipe` includes a shebang for python it will syntax highlight. Other times it does not.

This change adds an attribute to `*.recipe` to mark it as a python language to linguist, following the documentation on overrides[^2].

Example without highlighting: [recipes/ad.recipe]

Example with highlighting (python syntax picked up via shebang):
[recipes/ambito_financiero.recipe]


[^1]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-repository-languages
[^2]: https://github.com/github-linguist/linguist/blob/559a6426942abcae16b6d6b328147476432bf6cb/docs/overrides.md


[recipes/ad.recipe]: https://github.com/kovidgoyal/calibre/blob/aeb19dfedfe14c5ee8d454c831d634e81219bf44/recipes/ad.recipe
[recipes/ambito_financiero.recipe]: https://github.com/kovidgoyal/calibre/blob/aeb19dfedfe14c5ee8d454c831d634e81219bf44/recipes/ambito_financiero.recipe
2024-02-15 17:20:07 -06:00
Kovid Goyal aeb19dfedf More Wayland time wasting
Wayland is designed so an application cant raise it sub windows without
also giving them keyboard focus. So write stupid boilerplate code
to ans request focus on wayland when raising a window. Sigh.
2024-02-15 14:37:10 +05:30
Kovid Goyal 773f7676b5 Remove <button> from all recipe downloads 2024-02-15 13:09:32 +05:30
Kovid Goyal 25adcae5b5 Merge branch 'master' of https://github.com/unkn0w7n/calibre 2024-02-15 11:56:09 +05:30
unkn0w7n f8b3652880 Andhrajyothy (telugu) recipe 2024-02-15 09:44:52 +05:30
Kovid Goyal 3cbcd0acc9 Change how background image works in preparation for profiles
Allow multiple background images and allow settings from browser and
desktop readers to work with each other
2024-02-15 09:35:09 +05:30
Kovid Goyal 558992008a String changes 2024-02-14 10:57:23 +05:30
Kovid Goyal 556140dd10 Merge branch 'master' of https://github.com/unkn0w7n/calibre 2024-02-13 12:21:54 +05:30
unkn0w7n 43d3ea4941 Update Swarajya Mag 2024-02-13 12:14:47 +05:30
Kovid Goyal 28e71c1162 Windows: Fix a regression in calibre 7 that caused images in long text columns to not be displayed in the tooltip for the tooltip
Yet another Qt regression. Sigh.
https://bugreports.qt.io/browse/QTBUG-122201
2024-02-13 10:36:35 +05:30
Kovid Goyal b9cdc80806 Add a link to the upstream bug report in the workaround code 2024-02-13 10:18:29 +05:30
Kovid Goyal ae6ef2807d Fix disabled items in menus having blurry text
Qt is a strange beast. This is because the fusion style draws a copy of
the text offset by 1px in the Light color from the disabled palette. Can
also be fixed by setting the light color to the window color but that
might have other undesirable effects.
2024-02-13 08:13:21 +05:30
Kovid Goyal f580758732 Merge branch 'master' of https://github.com/cbhaley/calibre 2024-02-13 07:26:29 +05:30
Charles Haley 1f1c777886 Enhancement 2052897: save and restore GUI panel layouts.
I added this to the existing Layout Actions. In addition I added the ability to toggle panels on/off in addition to turning them on and off.

I am unable to test the docstrings.
2024-02-12 17:15:12 +00:00
Kovid Goyal 04adea1b10 string changes 2024-02-12 15:16:01 +05:30
Kovid Goyal 1ff9bf9e24 Edit book: Allow selecting multiple books to edit at once, opening all selected books in separate editor instances 2024-02-12 14:34:37 +05:30
Kovid Goyal 2acb96a081 Merge branch 'master' of https://github.com/unkn0w7n/calibre 2024-02-12 11:16:28 +05:30
unkn0w7n d2ba5d180b nautil.us 2024-02-12 11:11:16 +05:30
Kovid Goyal 314a17a046 pep8 2024-02-11 19:33:31 +05:30