summaryrefslogtreecommitdiff
path: root/src/resources
Commit message (Collapse)AuthorAgeFilesLines
* grid-cell, name-cell: Have thumbnail cover allocationAntónio Fernandes2023-04-052-0/+2
| | | | | | | Otherwise, due to some modular arithmetic artifacts, there is an unsightly 1px transparent line between the picture and its css border. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2779
* style.css: Make rubberband to have rounded cornerssunflowerskater2023-01-201-0/+4
| | | | | | This change makes the rubberband to have rounded corners, making it consistent with other elements such as buttons and text entries, which also have rounded corners.
* name-cell: Don't open on hover expander icon.António Fernandes2023-01-161-5/+9
| | | | | | | | | | | | GtkTreeExpander includes a built-in "expand on drag hover" feature. But our own "open on drag hover" feature competes (and often wins) over it, making it hard to reliably expand rows on hover without opening the folder. So, separate the content and the expander. Trigger "expand on drag hover" only if over the expander, and "open on drag hover" only if over the rest.
* list-view-item-ui: Show spinner while loading subfoldersAntónio Fernandes2023-01-101-0/+8
| | | | | The spinner is shown only after 1 second without the directory having finished loading, to avoid visual noise when directories loads quickly.
* list-view: Support expanding as a treeAntónio Fernandes2023-01-102-76/+80
| | | | Starred, Recent and Search still not supported due to bugs
* window: Add drop targets back to tabsCorey Berla2023-01-091-1/+1
| | | | | | | | | With the introduction of ::extra-drag-value in AdwTabBar, we can now dynamically set the preferred action on the AdwTabBar. Use the "extra" drop target on the AdwTabBar, and use our existing code making this fairly simple. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2495
* window: Add restore closed tab to tab menuCorey Berla2023-01-091-0/+4
| | | | Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1620
* window: Add detach tab menu optionCorey Berla2023-01-091-0/+4
|
* window: Add close-other-tabs actionCorey Berla2023-01-091-0/+4
| | | | | Add the ability from the tab menu to close all other tabs.
* window: Add translator comments for move tab stringsCorey Berla2023-01-091-2/+2
|
* file-conflict-dialog: change base to AdwWindowPeter Eisenmann2023-01-081-98/+119
| | | | | Use AdwWindow as a base class for the conflict dialog, as GtkDialog is deprecated with GTK 4.10.
* general: Rename "application" to "app"sunflowerskater2023-01-082-2/+2
| | | | | This is part of an initiative to use the "app" term instead: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123
* grid-cell: Show tooltip for ellipsized namesAntónio Fernandes2023-01-081-0/+1
| | | | | | | | | The old canvas expanded filename over the next row when the item was selected. This is impossible to replicate in GtkGridView due to the next row getting drawn after (== on top of) the previous one. This is perceived as a feature regression. So, let's aleviate it using tooltips when the filename is ellipsized.
* nautilus-toolbar: add mnemonics for New Window/TabPeter Eisenmann2022-12-241-2/+2
| | | | Fixes #2465
* window: Allow swipe to hide sidebar only when foldedAntónio Fernandes2022-12-231-0/+1
| | | | | | | When not folded, there is not visible nor invisible way to restore the sidebar, so it shouldn't be allowed to be closed by touch gesture. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2536
* help-overlay: Remove redundant "visible" propertySabri Ünal2022-12-151-61/+0
| | | | | | | Widgets are visible by default on GTK4. Remove visible property when setting to TRUE. Source: https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwidget.c#L1275
* properties-window: Capitalize multi-byte characters correctlyAleksandar Dezelin2022-12-041-10/+0
| | | | | | | | | | | | | | Pango library doesn't support specifying text-transform in utf8 codepoints. It instead uses positions in the raw string. This is why we have problems with, for example, the Cyrillic label in the UI file text_transform positions are specified as 0 for the start and 1 for the end and the first Cyrillic letter consist of two bytes. Remove attributes from the UI file and implement label text capitalization using the function eel_str_capitalize() which does the same but in a proper way for type_value_label and type_file_system_label. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2494
* Revert "Incorrect � letter shown for file type name in Japanese and ↵António Fernandes2022-12-041-0/+10
| | | | | | | | Cyrillic languages" This reverts commit 91f7fb675e558fb0b2c3dc5a6082386b0aef159a. The commit message was broken, missing context.
* Incorrect � letter shown for file type name in Japanese and Cyrillic languagesAleksandar Dezelin2022-12-041-10/+0
|
* application: Remove excessive show-help-overlay actionSabri Ünal2022-11-291-1/+1
| | | | | | | | | We don't need an extra action to show help-overlay. It already managed by GTK. Source: https://docs.gtk.org/gtk4/class.Application.html#automatic-resources Topic: https://discourse.gnome.org/t/nautilus-unnecessary-action-to-show-help-overlay/12516
* general: Add trailing ellipsis to Empty TrashGotam Gorabh2022-11-262-3/+3
| | | | | | | | | Add trailing ellipsis at the end of Empty Trash to fulfill GNOME Human Interface Guidelines. Trailing ellipsis is used when further input or confirmation is required from the user before the action can be carried out. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2502
* files-view: Remove trailing ellipsis from "Visible Columns"Gotam Gorabh2022-11-261-1/+1
| | | | | | | | | Remove the trailing ellipsis from Visible Columns to fulfill the GNOME Human Interface Guidelines. Trailing ellipsis is used when further input or confirmation is required from the user before the action can be carried out. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2534
* help-overlay: Remove "Open file and close window"Jake Dane2022-11-141-7/+0
| | | | | | | | The code for "Open file and close window" shortcut was removed in 3332de3026846ee6d0cae9bd203f1ec9311d21cc but it is still listed on the keyboard shortcuts help. Remove it from there as well. Fixes #2612
* list-base: Make sort constants match attribute namesCorey Berla2022-10-211-3/+3
| | | | | In columnview we are setting them using the attribute value and they should match the toolbar dropdown.
* application: Add shortcut for PreferencesSabri Ünal2022-09-301-0/+7
|
* style: Fix free disk space caption dot colorAntónio Fernandes2022-09-042-1/+5
| | | | | | | | | | It hardcodes a color which matches only in light mode, and only if high contrast is not enabled. Instead derive from currentColor to get light/dark automatic support and double the alpha opacity on high contrast. The alpha values were copied from libadwaita's color used by level bar.
* style-hc: Refine pathbar buttons and search tagsAntónio Fernandes2022-09-041-1/+10
| | | | | | | Remove inset borders from the former, add them to the later. Also inset the pathbar border, to make it look look the same height as buttons in the headerbar and overlap the secondary menu border.
* application: Adopt AdwApplicationIgnacy Kuchciński2022-09-014-9/+13
| | | | | | | | | | | | | Doing this allows us to automatically load stylesheets located in the resource base path, so move contents of both Adwaita.css and nautilus.css to style.css in the root of the resource directory, which will be always automatically loaded. Additionally, create a style-hc.css which will be used when the system high contrast preference is enabled, and adjust it to fix issues with NautilusPathBar. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2166
* progress-indicator: Fix attention-grabbing animationAntónio Fernandes2022-09-011-7/+3
| | | | | | | | | | | | Before the GTK 4 port, we had animation theatrics which showed an expanding "aura" for the newly revealed button, together with a glowing CSS animation. Under GTK4 there is currently no available copylib for implementing similar theatrics. So, use only the CSS animation, make it simpler, and use accent color to compensate for otherwise reduced attention-grabbing effect.
* files-view: Add Unstar back to file context menu when in Starred folderCorey Berla2022-09-011-0/+5
| | | | | | | Now we have another way to star files (by DnD), but unstarring is limitted to the properties window and the listview icon. Add back the ability to unstar from the files context menu only when in the starred folder.
* file-conflict-dialog: Use GtkPicture instead of GtkImage for iconsAntónio Fernandes2022-09-011-2/+2
| | | | | | | Picture will automatically take the size of the paintable, while Image defaults to 16px. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2432
* batch-rename-dialog: Fix size and border of results listCorey Berla2022-09-012-0/+8
|
* batch-rename-dialog: Fix default sort orderCorey Berla2022-09-011-1/+0
| | | | | | | | | | | | | | | | The list should be sorted by name-ascending, that state is set when the action is created. The sort is set when the action state is changed, and since the action state isn't changed after creation, the sort never happens. This leads to an inconsistent state where the list is not sorted, but the button label indicates that the list is sorted. Change the numbering-order state to name-ascending after the actions are created (even though that state is already set) in order to force list sorting. Also remove, the default label on the sort button in order to prevent this issue in the future (the label gets set anyways when the state is changed).
* batch-rename-dialog: Fix insert and delete text signalsCorey Berla2022-09-011-2/+0
| | | | | | | | | Similar to 60b0a8ae87075374d56b5e3a766a63e5bcdd39ee in gtk4 the delete-text and insert-text should be connected to the editable delegate of the entry as the entry does not emit those signals. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2442
* general: Set labelled-by for view cellsCorey Berla2022-08-312-0/+6
| | | | | | | | | | | | | In gtk4, we need to set labelled-by to help a11y programs know what it currently selected. Unfortunately, the focus is on a GTK internal widget, so at the moment this solution requires a hack: we mark the internal list item widget as being labeled by our cell (which is, in turn, labeled by the filename label). We are reporting this to GTK to work toward a better solution. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2460
* pathbar: Add empty trash action to secondary menuIgnacy Kuchciński2022-08-231-0/+7
|
* files-view: Add empty trash action to background context menuIgnacy Kuchciński2022-08-231-0/+7
| | | | | After removing the action from the trash infobar, let's add it back where it makes sense to be located.
* general: Add & fix tooltips to match HIGRonen Margolin2022-08-223-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Change tooltips for the toolbar as follows: OLD: Go back Go forward <Nothing for path bar locations> <Nothing for the path bar menu> Search Show list View options <Nothing for the primary menu> NEW: Back Forward <Folder Name> Current Folder Menu Search List View (or Grid View) View Options Main Menu Fixes #2349.
* nautilus-toolbar: Use Header Capitalization for Icon SizeSabri Ünal2022-08-221-1/+1
| | | | | | | | | | | According to GNOME HIG, menu entries should be Title Case. This patch corrects "Icon size" to "Icon Size". GNOME HIG header capitalization guideline: https://developer.gnome.org/hig/guidelines/writing-style.html#header-capitalization Fixes: #2425
* properties: Wrap filename by words and charactersanarchistcat2022-08-221-0/+1
| | | | | | Wrap the filename using PANGO_WRAP_WORD_CHAR to ensure long filenames without spaces wrap properly. Fixes #2411
* nautilus-toolbar: Mark two strings translatableSabri Ünal2022-08-151-2/+2
|
* app-chooser: Put the AdwActionRow in a GtkListBoxCorey Berla2022-08-081-8/+15
| | | | | | | | eac32fcad6dc829a6388a7cc78a189dc83844a85 added an action row which inherits from a GtkListBoxRow without putting it in a GtkListBox (or something that inherits from GtkListBox like AdwPerferencesGroup). This caused the activatable-widget not to work. Put the row in a GtkListBox since we don't want any of the other styles from Adw
* app-chooser: Simplify setting title and subtitleCorey Berla2022-08-081-28/+1
| | | | | | eac32fcad6dc829a6388a7cc78a189dc83844a85 changed the bottom row to use AdwActionRow which provides for a much easier way of setting the title and subtitle
* app-chooser: Connect application-activated signalCorey Berla2022-08-081-1/+1
| | | | | | | | The app chooser doesn't work correctly when user the <Enter> key. Connect to the application-activated signal to properly handle this and other situations where it's activated. Related: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2390
* view-controls: Set dropdown tooltipAntónio Fernandes2022-08-071-1/+1
| | | | | The translatable string is not new, it was simply lost in the rebasing process leading to commit dd407da7da81cbc02a3e8ec1a03f447cea0ac65f
* app-chooser: Capitalize typeAntónio Fernandes2022-08-071-0/+5
|
* app-chooser: Improve layoutAntónio Fernandes2022-08-071-62/+78
| | | | | | | | | | | | On the verge of UI freeze, spliting this among previous commits is not possible, unfortunately. So, this packs a few changes at once: * Avoid double scrollbars. The GtkScrolledWindow is preserved for future use when we get rid of GtkAppChooserWidger, but otherwise it doesn't scroll. * Add a separator above default switch row. * Make the switch row and make the whole row clickable. * Fine-tune margins.
* app-chooser: Add a description above the listCorey Berla2022-08-071-0/+9
|
* app-chooser: Use more specific titleCorey Berla2022-08-071-1/+1
| | | | | Make default title "Open File" or "Open Folder" if it's a folder. If we are acting on a mix of items make it "Open Items"
* app-chooser: Replace Reset and Set as Default buttons with a SwitchCorey Berla2022-08-071-25/+41
| | | | | | | Set the switch to active when the association is set as default and inactive when it is not set as default (also a way to remove the default association). Add a label for the switch with a subtitle indicating the content description.