Commit Graph
63 Commits
Author SHA1 Message Date
Humdinger 3fb277ab3a Fix BDate::LongDayName()
As PulkoMandy found out B_LONG_DATE_FORMAT corresponds to ICU's
"Abbreviated", while we want B_FULL_DATE_FORMAT (ICU's "Wide").
That is, we want e.g. "Saturday", not "Sat".
Used in WebPositive's "History" menu.

Fixes #18630.

Change-Id: Iaca93f9e34a117dae76455cde217a03dd66f08e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9719
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-10-26 07:00:37 +00:00
Humdinger 08e8099b4a TextSearch: Fix open on double-click
Need to call BOutlineListView::AttachedToWindow() or the message
assigned by SetInvokationMessage() isn't set. Which prevents opening
a search item on double-click.

Change-Id: I3028917df075c9b10aae73747100081c48ef1dac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9710
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-10-22 15:56:21 +00:00
Humdinger c928bd3270 TextSearch: add context menu
A right-click opens a popup menu with useful items of the "Actions"
menu of the main window menu.

Change-Id: Ie2eb832fee48d642cec66f0a3c7212570eedb6c0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9657
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-10-15 10:02:24 +00:00
Humdinger f65a156bf8 TextSearch: Fix show/trim actions of selected sub-items
"Show in Tracker" or "Trim to selection" actions don't work when
applied to selected sub-items. With this change, we get the top-level
item of those sub-items to get to the file's path to fix this.

Change-Id: Idfda52d7cbd04598e52f6226f422f3afc6895d75
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9659
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-10-01 11:01:01 +00:00
Humdinger 6929e96086 Use IconMenuItems for supported apps menus
Show icons for menu items of supported applications in ShowImage
and FileTypes preferences.

Change-Id: I10dbdfef3f7815f7b21d141648ae78dad5fd9993
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9517
Reviewed-by: waddlesplash <[email protected]>
2025-07-24 15:31:47 +00:00
Humdinger 7d07c4bc73 Added Norwegian translation credits to AboutSystem
* Uncomment the Norwegian credits
* Added Johan Wagenheim to translation credits

Change-Id: I0016161fd8608da6bec9ed400b845deba64ed512
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9342
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2025-06-14 14:03:07 +00:00
Humdinger ba28b6f5f7 Mail: Avoid duplicate Person items
Duplicates can arise if e.g. you have backup of your contacts mounted.
Or, imagine someone packages a Person file with their software as it
was common back in the BeOS days. If you have several software packages
from that dev, you'll see copies of that Person file from each package.

If a contact has the same name, we compare all email addresses. If they
differ, a new item is created. That way, Person files with more than
one email attribute ("META:email{n}" with n >= 2), as used by other apps
like Peeps!, get an item per address.

When checking for email addresses in AddPersonAddresses(), don't quit
looking through the attributes when encountering an empty one via "break".
Do "continue" with the next "META:email{n}" attribute, as it's possible
META:email2 is empty, but META:email3 has an address.

Change-Id: I644cfa2d8349b5022ffde37344c55a54577b12f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9331
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-06-09 16:25:12 +00:00
Humdinger 1ebc7b923c Mail: Avoid showing contacts' empty addresses
Other contacts apps like Peeps! allow for more than one email
addresses, using the attributes META:email{n} with n >=2.
Only, not all contacts having those additional attributes have
them actually filled.

This results duplicate entries in e.g. the To-field pop-up with
no email address attached.

We now only add an item if its email address isn't empty for those
additional email attributes as well.

Change-Id: Icb1750fe8e2b10280bc01b3181b444f01096e021
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9329
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-06-07 13:19:05 +00:00
Humdinger e5a6a906f8 Tracker: Fix "Select" shortcut
* Quick sentense-casing fix to AboutWindow.

* Probably some copy&paste mishap.
  Fixes #19596

Change-Id: Ic7193cceaa9ad3da771c2d8e950a52234f0e7b64
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9317
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-05-31 20:58:02 +00:00
Humdinger 66032c9f31 install-wifi-firmwares.sh: Fix download URL
Change-Id: I5a8eba3f3b0d4d0071e011959d5d1aedc9db24e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9318
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-05-31 20:57:45 +00:00
Humdinger 6ef33c54e0 TextSearch: Add "Clear history" menu item
Sometimes it's good to go back to a clean slate…

Change-Id: I6252b42c948b1fa9cbe786104a191fb0d4e629c0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9306
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-05-29 18:22:56 +00:00
Humdinger 2d11570065 Mail: Fix "Close and set to…" for multiple mails
Before, when you got multiple emails open, doing e.g. a "Close and
leave as New" (SHIFT + ALT + W) would correctly leave the active email
with status "New", but the other open Mail windows were closed as well
and got the status "Read"!

Now we only close the current Mail window, not the whole app and with
it all open email windows.

The currently somewhat hidden command "SHIFT + ALT + Q" now issues
a message to all open Mail windows to close and keep their mails' status,
i.e. the same as invoking SHIFT + ALT + W in all open email windows.

Change-Id: I0402a1e39ce58b53eca2c3bfe8f8becd5529c566
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9305
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-05-29 16:40:53 +00:00
Humdinger 67aa257da8 TextSearch: Add keyboard navigation to history
Move back and forth in the search history with CursorUp/Down.

Entering a search text will reset the current history index
(fCurrentHistoryIndex = -1), and you'll be back to the first
history item next time you CursorUp.

Change-Id: Id45a47756b4732ae6e22e5373c4db5249c8df198
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9303
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-05-29 16:40:14 +00:00
Humdinger 3b75482ee0 Tracker: Fix missing translation
Fixes #19593

Change-Id: I98123abb512ded028c2381511a17f3fcdfde9ef3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9313
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-05-29 15:37:22 +00:00
Humdinger 6f8e4bb335 Sounds: Check all B_*_SOUNDS_DIRECTORY for default folder
There's no B_*_SOUNDS_DIRECTORY unless a package creates
it. Check all locations (B_FIND_PATH_SOUNDS_DIRECTORY)
and set the first found as default folder for the file
dialog.
If none are found filepanels default to B_USER_DIRECTORY.

Change-Id: I26d063ba46f8c3bd83df68677b86751e1dd7c6cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8957
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2025-04-25 15:03:04 +00:00
Humdinger 87f30d6791 Launchbox: translate error message
Fixes #19535

Change-Id: I801b71b09e6d231d4ca1d9142e528dd9f401f59c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9198
Reviewed-by: Jérôme Duval <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2025-04-21 18:58:55 +00:00
Humdinger 02efee2f3a Add Taiwanese flag
Shows up in the Locale preferences.
Add comment that data is sorted by ID in CountryFlags.rdef.
That way it's clear what's the next ID for a new flag, you
just add it with the next ID at the end of the file.

Fixes #19494

Change-Id: I0946730d07c89001331552b5026c0003c298de4a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9140
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-03-25 11:57:29 +00:00
Humdinger e2878192d8 Updated credits of AboutSystem
Added translators we've missed before. Thanks everyone!
* 玉堂白鹤 for Simmplified Chinese
* Путий Иван (itvanya) for Russian

Change-Id: I7f1bc2b85554711b894367dc92b02a04b8426f23
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9124
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-03-15 13:04:41 +00:00
Humdinger 21ee34828b waitfor: re-write, added option to wait for network
The new "-n" parameter waits for the networking to be up.
Code lifted from SoftwareUpdater.

To avoid polling the network status, use start_watching_network().
As this involves messaging, a BApplication is created and a
BMessageRunner is now used to regularly check if threads or
apps have started/ended.

Change-Id: I55b5174dbdbd326d8d40b958ebf966f8fa6718b3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9067
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-03-06 20:26:16 +00:00
Humdinger 2d3b5776e7 AboutSystem: Separate zh-Hans/zh-Hant, add translators
Adding daniel03663 and edouardlicn for Traditional Chinese, and
Jinuk Jung for Korean.

Change-Id: Ie1f38af87068d1d5d2fa0b07b9594fb371887ea1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9027
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-03-05 20:11:43 +00:00
Humdinger e17a9b1ee0 Web+ Bookmark bar: Fixes, added "Show in Tracker"
"Show in Tracker" opens and selects a bookmark in Tracker. Useful
if "Rename" isn't good enough, when you need to edit the URL, Title,
or Keywords attributes.

Fixes a crash when trying to "Rename" a folder. Folders were added
without a message before, so trying to access them to FindRef() lead
to a crash.
Folders are now added with a message kFolderMsg which is also used
to identify them as folders (instead of checking if their message
is NULL as before).

It's not uncommon to have symlinks in the Bookmark bar. We now don't
traverse those to their origin when renaming or deleting, so only
the files in the "Bookmark bar" folder are affected, not the original
files.
Only when adding an item, we traverse a symlink for its icon.

Change-Id: I3f420995cf5c12930a1cf3a00bb4257d19c4d5a6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8772
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-01-26 08:46:58 +00:00
Humdinger 70a0a1d51e Web+: don't pop DL window to the front
When you download a file, the Downloads window is opened to show
the progress etc. This is good, but once opened, it shouldn't
get activated (= pop to the front and getting focus) for each
new download. Often you've continued scrolling a webpage and when
the download finally starts, the DL window steals the focus...

Change-Id: Icdbd6bc5e2f0441eff650428834348f3fb508906
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8799
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2025-01-09 17:22:44 +00:00
Humdinger 9eaffd12b0 Web+ bookmark bar: Minor GUI string changes
* Sentence casing
* Sort "Delete" in context menu to the bottom.
* Added BSeparator before "Delete" item to have this destructive
  action stand out.
* As bookmarks often have spaces, put their path/name in quotes.
* A bookmark path can be long, better start it in a new line.
* If the bookmark was successfully deleted, but removing it from
  the bookmark bar failed, we don't need to add the full path to
  the alert text, just use the name (= Leaf()).
* Fixed wording of error text when removing a bookmark from the bar.

Change-Id: Ie3cf32325bf77ca9fa5b60e3a49f02baae268090
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8771
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-01-06 16:04:32 +00:00
Humdinger 8aec27565f Rename notification sound names
Having "Notification" at the beginning of the sound names makes
sure their entries in the Sounds preferences are always next to each
other.

Change-Id: Ia47431ecd4c5e8c346f1417a4d29a151c06217cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8737
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
2024-12-31 07:37:02 +00:00
Humdinger 783347df2b Sounds prefs: "pre-hear" button in file panel
* Using "SndFilePanel" from Be Sample Code by Todd Thomas with only
  small changes.

* Removed check for audio file in B_REFS_RECEIVED, because the file
  panel uses a BRefsFilter.

* Reset file panel location in case the panel was canceled.

* Use entry.IsDirectory() instead of entry.GetStat() for simplicity.

Change-Id: Ibb4a4cb8e3c4b60c85a9ba0b2e5287416bbc4b44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8736
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-12-30 18:01:18 +00:00
Humdinger 05c63cc0fe Sounds prefs: don't show folders in Sounds menu
Besides the already set sound files, the Sounds popup menu shows
the files of all the B_*_SOUNDS_DIRECTORY.
As people/packages may sort sound themes in sub-folders there, only
add files from there to the menu, no folders.

Change-Id: I79cda5d547fc1a0ec0234384e3b76f2c455b2881
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8722
Reviewed-by: waddlesplash <[email protected]>
2024-12-27 16:15:24 +00:00
Humdinger ae08ea6750 Sound prefs: save path for file dialog
* Default to B_SYSTEM_SOUNDS_DIRECTORY (if it doen't exist, the
  home folder gets set automatically).

* Save the last used path in the Sounds_Settings file.

* If the last used path isn't valid any more, default to
  B_SYSTEM_SOUNDS_DIRECTORY.

Change-Id: I90bf7e640e648e6e7dfc2941440550cb074c18f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8704
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-12-27 16:04:33 +00:00
Humdinger 7c5e909fba New/updated icons for native/installed apps in HaikuDepot
* A new icon to indicate native apps in HaikuDepot. It's simply the
  Overlay_leaf on a blue disk.

* Slight change to HaikuDepot_Installed to add a black outline to its
  green disk. That makes is better distinguishable on similar coloured
  backgrounds.

* Made the green of HaikuDepot_Installed a bit less glaring, using a
  slightly light green that shown in the old Haiku Color Palette [1]

[1] https://www.haiku-os.org/files/downloads/2007-03-20_haiku-color-palette.png

Change-Id: I5c29d65e05561fafe5d84c173ddaf083281d391b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8526
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-11-07 19:06:29 +00:00
Humdinger eee90c8e17 Find panel: make text input column wider
In "by attribute" mode, the attribute popup and AND/OR popup menus
are needlessly wide, while the text input field could be wider.

This change increases the weight of the text column, making those
popup menus less wide.

Fixes #19116

Change-Id: I347583cdb7d8e399f83f56cc2d167084e1483ba8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8356
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-09-22 19:05:26 +00:00
Humdinger 6e67cff8a0 DriveSetup: Fixed incorrect quotes of partition names
* _DisplayPartitionError() adds quotes to the partition name variable (%s).
  So when calling it, the passed string musn't have the variable in quotes
  already (\"%s\") or we'll end up with duplicate quotes.

* Anywhere else we see a partition name variable, it should have quotes.
  This change fixes two places that didn't before.

Change-Id: I37e806c9dceea3c2a2b52a7cb139d7c32e976d5c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8353
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-09-22 19:05:00 +00:00
Humdinger 492a07f2c7 Find panel: GUI string changes
* Move "Open..." menu to the top, above the save items, as is usual for
  Haiku apps.

* Capitalize "Trash", as in the rest of Haiku; it's the concept of "Trash",
  i.e. of all mounted volumes.

* Replace the volume-popup label "On" with "Target:". After limiting the
  query to folders was added, "on" wasn't grammatically correct any more.

Change-Id: Id8a65d287af0b154956b1018599876d276a33bda
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8110
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-08-28 15:20:56 +00:00
Humdinger e5767a2833 HaikuDepot: fix copy paste error in status string
Change-Id: I9d0bd0183d9ac0e43d4746753818c6eee1931da1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8142
Reviewed-by: Jérôme Duval <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-08-28 06:37:31 +00:00
Humdinger 1fa52ceadd New templates: add menu item to create a submenu folder
* Add a menu item at the bottom of Tracker's "New" menu and all
  submenus to "Add new submenu...".

* The menu creates a folder "New submenu" under
  "~/config/settings/Tracker/Tracker New Templates" and adds the
  attribute _trk/_template_submenu = true to it. That results
  in showing it as a submenu in Tracker's "New" menu.

* Finally "~/config/settings/Tracker/Tracker New Templates" is
  opened and selected, so the user can edit the folder name that'll
  appear as submenu label in the "New" menu.

Change-Id: I1783f8a88c8e56fbe33012c7312cc97e9401f7f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7931
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: humdinger humdinger <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2024-08-25 19:23:46 +00:00
Humdinger eea5774f46 HIG: add section on "Recently Used Files"
Change-Id: I6d4190adc8a77ce755435f415b6bd281921990d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8005
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-08-14 10:49:07 +00:00
Humdinger d9739e69b8 FSUtils: Fix entry_ref of renamed file, locale fixes
FSCreateNewFolder(): Fix entry_ref of renamed file
* If FSMakeOriginalName() renames a file, because the file name
  already exists, FSCreateNewFolder() needs to set the ref to the
  new filename.

* Fix copy-suffix in FSCreateNewFolder(). The space comes before the dash: " -".
  Before, you ended up with "File name-  2"

FSMakeOriginalName(): Make truncation localization aware

* In FSMakeOriginalName() don't hardcode the 4 characters of "copy" when
  determine to truncate an overly long filename.

* Adjust comment in that regard + typo fixes.

* Localize default suffix " copy".

Change-Id: Ica880a8b831b321657f3f2d3825509b7fb9fe72d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7960
Reviewed-by: waddlesplash <[email protected]>
2024-08-12 18:20:27 +00:00
Humdinger 12bfa3571c CharacterMap: tweak colors, improve dark theme
Tweaking the colors for the character view.

* Don't use hard coded colors, but B_LIST_* colors.
  B_LIST_* has the advantage over B_DOCUMENT_* that there's a
  *_SELECTED_COLOR, too, for the the currently selected char.

* Make the disabled characters - those not part of the currently set
  font, but taken from a fallback font - a bit darker. Those lacked
  contrast before IMO.

* Dark themes need some special consideration when using disable_color.
  They need to be lightened where bright themes get darkened.

* Added special treatment for the color of selected items. Needed
  for people (e.g. me) that run a bright theme (= dark text on light
  background), but have light text on dark background for selected items.

Fixes #18948
Change-Id: I44e5be6a38e1d531238889b96ca65db0cf49b83f

Change-Id: Ic02ced0540edf29808fcead5dec64758a963e7e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7841
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-07-15 16:36:04 +00:00
Humdinger ed33555f4c AboutSystem: fix/remove broken links
There seem to be no obvious alternatives to the URLs for:

* Bitstream Charter
* GLU
* Ralink

Those URLs were removed.

Fixes #18932

Change-Id: I20a1a9e4d4808f5f6cbaa0f34f2aaf24be8f90f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7831
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-07-08 12:49:05 +00:00
Humdinger 0981bdb742 Magnify: improve label for width and height
When you add two crosshairs to measure pixels, it was a bit confusing to see:

1) x: 14 y: 11  x: 19
2) x: 33 y: 20  y: 9

Now it's:

➀  x: 14, y: 11
                  width: 19, height: 9
➁  x: 33, y: 20

"1)" and "2)" got replaced by dingbats numbers in a circle.

Change-Id: I7fd1b3bd7869a3251e15e249f74916150eef8218
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7724
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-06-20 17:15:03 +00:00
Humdinger de2a79cea2 Removing some B_UTF8_ELLIPSIS, sentence-casing
"New player" in MediaPlayer and "Get info" in ShowImage do exactly
like the item says, so no ellipsis needed. Similar to Terminal's
"New Terminal" and Trackers "Get info".

Change-Id: I32e59e219af7a09bd74b489459281cc71cbffd9c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7783
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2024-06-20 06:50:00 +00:00
Humdinger 0aede635f1 AboutSystem, Installer: show light/dark logos
* Use B_DOCUMENT_TEXT_COLOR and B_DOCUMENT_BACKGROUND_COLOR instead
  of black on white in text views.

* Depending on HAIKU_DISTRO_COMPATIBILITY_OFFICIAL build flag, either
  show the official Haiku logo or the Walter logo.

* If the official Haiku logo is used, show a version with black letters
  if B_DOCUMENT_BACKGROUND_COLOR is light, and white letters if it's not.

* Remove the "installer" versions of the black-on-white Haiku logo.
  Instead introduce "black|white-on-transparent" logos with a
  transparent background.

* Fixed the leave shadows in logo Wonderbrush files. Especially the
  yellow leave's shadow appeared too large and blurry.

Change-Id: I6d3ac384d2c96d91d35e6d6e85025c9e2064d59e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7419
Reviewed-by: waddlesplash <[email protected]>
2024-02-27 15:44:39 +00:00
Humdinger 7644bd25fc Tracker: Offer "Get info" when a symlink fails
While it's obvious which link is broken when the user double-clicks it,
it isn't when the link was tried to be opened by a script, or the
launch_daemon etc.

In case resolving a symlink fails, offer a button to call Tracker's
"Get info" panel with the broken link that has info about the link and
its target.

Change-Id: Id878d0ea3da0db65ade21dd4656c18ecba585784
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7434
Reviewed-by: waddlesplash <[email protected]>
2024-02-27 15:44:14 +00:00
Humdinger cdae7cfdbe Add a descriptive contents of the Haiku-Extras package
Good to know what's included. Also when searching stuff in HaikuDepot.

Change-Id: Ia87e657075e8066d4b460194c2ba19f6f4715f15
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7345
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-01-25 11:57:01 +00:00
Humdinger 15037a29f1 Move TV app into haiku_extras package
As discussed at
https://discuss.haiku-os.org/t/what-does-the-tv-program-do/14511

Change-Id: I7d9501cad2b9d4b3c6898ec39398101727c2eee8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7344
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2024-01-24 09:56:30 +00:00
Humdinger 3ab43722bf MIMEManager: use lowercase MIME when calling GetSupportingApps()
The list of supporting applications is generated case-insensitive
by making all items lowercase, see
src/kits/storage/mime/SupportingApps.cpp:302

Force the MIME type to lowercase before calling GetSupportingApps()
or a MIME containing uppercase isn't found.

Fixes #18752

Change-Id: I38252cd1be8f059d7df4bf8775855b6343a489c0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7340
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-01-23 09:49:30 +00:00
Humdinger ec595170fb Improve Deskbar window-icons
Better visible "swishy" lines that represent windows on another
workspace.

Deskbar_Window_Switch_Overlay are just the swishy lines.
Moved the windows of Deskbar_Window_Hidden and Deskbar_Window_Visible
to the right, so overlay lines can be simply "appended" in IOM.

Fixes #18727

Change-Id: I08eabd0f2e95a23921caf968ac73abf7758ae7ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7280
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2023-12-30 18:12:34 +00:00
Humdinger f362628248 Web+: Fix bookmark bar for localized systems
The folder name "Bookmark bar" should never be translated.
If it is, the folder won't be found, the bookmark bar never shown and
the menu item "Show bookmark bar" always disabled.

Change-Id: I0fb5bc6d4027c7fa957205c1da72c2fabd9e122e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7204
Reviewed-by: waddlesplash <[email protected]>
2023-12-11 18:37:37 +00:00
Humdinger 2b50f7759d ShowImage: fix off-by-1 image placement
The image was placed 1 pixel to the right, resulting in a grey
vertical line appearing to the left of the image.

Fixes #18679

Change-Id: I02b1cb6bc898c48ff73ae114b2cda368ea636de7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7118
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2023-11-22 04:06:56 +00:00
Humdinger 7d85c2beb1 Add .genio of the Genio IDE to .gitignore
Change-Id: I9397bef0ab05b1a12d234e5c52da8e88e54571ff
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7119
Reviewed-by: Alex von Gluck IV <[email protected]>
2023-11-21 16:29:53 +00:00
Humdinger 2de4cba264 OverlayImage: Apply coding style
Change-Id: Id35e8eeaf0735210cbe14d618c59d5ef8dc90a09
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7114
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-11-20 23:19:22 +00:00
Humdinger 2283561d60 OverlayImage: Use BAboutWindow
Fixes #18677

Change-Id: Ia1469527ce9dd4e7c217182e3751357aa5305f18
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7113
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-11-20 23:19:22 +00:00
Humdinger 345265c3d6 ShowImage: fix saving
As investigated and suggested by jackburton in ticket #14693:
outTranslator wasn't initialized correctly (due to type mismatch
on 64 bit platform).

Also set the image's file name as default in the save dialog.

Fixes #14693

Change-Id: I741e3616b935315a707ea3949a330d41d577fd91
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7102
Reviewed-by: waddlesplash <[email protected]>
2023-11-13 22:10:25 +00:00
Humdinger 964b6e8090 People: Accept initial values
Besides the entry_ref to an existing Person file as argv, also
accept a BMessage containing values for attributes and set those
in the new window.

The specifier name in the BMessage needs to be the same as the
attribute name used by the People app, e.g. "META:email".

Needed to let the Mail app create a new Person file with the email
address already filled in.

Fixes #14766

Change-Id: I637200b08d5c1b7cf52d7cf3f56dab93ce1a6ec5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7085
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2023-11-09 12:13:01 +00:00
Humdinger a7ee73c8eb Mail: Fix "Save address" as new Person file
If a Person file with the selected email address doesn't exist yet,
launch the People app with a BMessage "M_LAUNCH_PEOPLE" that triggers
the People app to create a new Person file.
The message includes "META:email" and "META:name" for email address
and contact name. The contact name may be empty, if it wasn't included
in the mail's from/to/cc etc. field.

Don't show error alert, if People was already running.

Fixes #14766

Change-Id: Id4f7ae50aa1ea283974f2fa067ac9e199f369db5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7084
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-11-09 12:13:01 +00:00
Humdinger 15305513ae Add "Reset rating" menu item to MediaPlayer and ShowImage
Doesn't remove the rating BFS attribute from the file, just sets it to "0".

ShowImage: Move "Ratings" menu into a new "Attributes" menu, similar to
MediaPlayer.

Change-Id: I831166d88be9d18f1d302a423aa43929b7a1b255
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7092
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-11-06 13:36:20 +00:00
Humdinger 631e35ca58 Tracker: Use half-star symbol for odd rating value
The rating now uses unicode symbol U+2BEA - "Star with Left Half Black": ⯪
for the odd rating values (ranging from 1 to 10 for up to 5 stars).

The other used symbols are still:
* U+2605 - "Black Star": ★
* U+2606 - "White Star": ☆

Fixes #12986

Change-Id: I1ea27db67131b071e827a05847595f88b6d9dcda
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7091
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Rene Gollent <[email protected]>
2023-11-03 21:28:57 +00:00
Humdinger 4391f32b36 ShowImage: Re-arrange menu items
* Moved "Use as background..." from "Image" to "File" menu.
  "Image" holds items that affect the display of actual image
  (rotate/flip). "Use as background..." doesn't.
* Move "Close" down above "Quit".

Change-Id: I23ddcc2cf03937322649ab289ef405f84c878dfb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7090
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-11-01 09:06:42 +00:00
Humdinger 32ed03a521 ShowImage: Add "Open with..." menu
Populate a new sub-menu with all applications that support the current
image's MIME type. Launch the chosen app with the image entry_ref as
B_REFS_RECEIVED message.

The sub-menu listing supporting apps is separated into apps supporting
the supertype ("image/" and full support (e.g. "image/png").

Add the new "Open with..." menu to the "File" menu and the context menu
of the image.

Most of the code was grabbed from the FileType prefs PreferredAppMenu,
therefore its copyright was copied and extended.

Change-Id: I0190cf4b78c59e429f4e67654665598340653c5d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7072
Reviewed-by: Axel Dörfler <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2023-11-01 03:20:30 +00:00
Humdinger 6de9c42da6 BootManager: improved layouting
Addresses #15418 without completely solving it.
At least for font sizes >= 11 points it works mostly. Buttons are
no longer cut off, though the summary page showing all partitions
is taller than necessary for > 3 partitions, esp. for smaller font
sizes.

Views aren't vertically centered at least.

Change-Id: Id6224b83f27510c9ed45e303f0b5dabf47af0574
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7062
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-10-26 07:56:47 +00:00
Humdinger de1e2d9227 BSpinner: Simplify SetMin|MaxValue()
After the last change, korli suggested this simplification that lets
SetValue() do all the in/decrement-widget en/disabling.

Change-Id: If87579d9104bbc9ae279aa5f2f99c9921bb238ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7053
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2023-10-19 08:14:12 +00:00
Humdinger ad7c4e2dbd BSpinner: Fix in/decrease widget behavior
Say you have a BSpinner with a fValue of 10 and a fMaxValue of 10.
The +-widget is correctly disabled.
If you now set the fMaxValue to 20, the +-widget stays disabled.

With this change the state of the +/- widgets are set correctly when
the Max/MinValues are changed.

Change-Id: I4dce7f0ecd6aee8e9b562618ec1367dbeb212dc4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7050
Reviewed-by: waddlesplash <[email protected]>
2023-10-17 15:19:52 +00:00
Humdinger 493d3c69f3 GLTeapot: Add setting to limit FPS
* Plus renaming "File" menu to "GLTeapot". No files involved.

Fixes #18599

Change-Id: Ifd47eea8eb11d7c94d8f6cc0d4db48eaa0b0bf59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6954
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-09-26 16:38:30 +00:00
Humdinger 9e76d619a2 Terminal: Fix translation of "Colors" window title
Change-Id: I9a9f166dbdb4a2e008eabab53c9ab70f3439aa59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6899
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2023-09-19 08:49:30 +00:00
Humdinger 5491ece2a4 PowerStatus: Rename 'battery low' sound, add 'critical' sound
* Renaming "Low battery" to "Battery low" so it's right next to
  "Battery charged" in the Sounds prefs event list.

* Adding "Battery critical" sound. I think it makes sense to have
  a different - more urgent - sound when there's only 15% left,
  compared to "Low" (30%).

Change-Id: I46b5975e5797a9c3a84d4619e697be162e79b1cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6900
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2023-09-08 15:12:04 +00:00