Commit Graph

1574 Commits

Author SHA1 Message Date
Autocomitter
e7438cbeba Update translations from Pootle 2021-03-27 08:49:11 +00:00
Autocomitter
f116fa6b2e Update translations from Pootle 2021-03-20 08:43:43 +00:00
Alexander G. M. Smith
3376ed1a72 Package Kit: Proper Installation for First Boot Packages
Do the final installation operations for all the packages in the
/system/packages directory when the OS is booted for the first time.

This will run their post-install scripts, create users, groups and generate
settings files (marked with a package version attribute).  Previously we just
ran all the shell scripts found in the /system/boot/post-install directory
(don't do that as much now).

Fixes bug #14382

This patch has simpler code flow in CommitTransactionHandler::_ApplyChanges
Tested on 32 and 64 bit systems.  Once it's official, need to remove the
open_ssh redundant post-install script that creates users etc. from HaikuPorts.
Now we can notice bugs like package version attributes on settings files aren't
fully working. :-)

Didn't remove special case for add_catalog_entry_attributes.sh since it
still does stuff that the build system doesn't do.  Might be able to add
that script as part of the Haiku.hpkg.  See change 3751 for removing it,
https://review.haiku-os.org/c/haiku/+/3751

Change-Id: I3807b78042fdb70e5a79eca2e2a45816ece0236f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2342
Reviewed-by: Alexander G. M. Smith <agmsmith@ncf.ca>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 09:10:18 +00:00
Autocomitter
9aed476999 Update translations from Pootle 2021-03-13 08:45:30 +00:00
Autocomitter
46c7a1d9de Update translations from Pootle 2021-03-06 08:44:18 +00:00
Autocomitter
1eac17132d Update translations from Pootle 2021-02-27 08:39:35 +00:00
Autocomitter
00fda04592 Update translations from Pootle 2021-02-20 08:45:21 +00:00
Autocomitter
91b9cbbbb0 Update translations from Pootle 2021-02-13 08:41:51 +00:00
Autocomitter
f01bc2121f Update translations from Pootle 2021-02-06 08:44:58 +00:00
Autocomitter
522cc4b989 Update translations from Pootle 2021-01-30 08:43:01 +00:00
Autocomitter
a43b8d4634 Update translations from Pootle 2021-01-23 08:40:14 +00:00
Autocomitter
648fdf2310 Update translations from Pootle 2021-01-16 08:51:22 +00:00
Autocomitter
096687ba71 Update translations from Pootle 2021-01-09 09:15:16 +00:00
Autocomitter
162f0ea529 Update translations from Pootle 2021-01-02 08:51:41 +00:00
Autocomitter
96ceef6eb2 Update translations from Pootle 2020-12-26 08:47:59 +00:00
Autocomitter
4358626708 Update translations from Pootle 2020-12-19 08:44:19 +00:00
Adrien Destugues
e46898932c Initial work for the mmc_disk driver
No read and write support for now. But we implement getting SD card
capacity. SDHC is not supported yet (it uses a different layout for the
CSD register which will be rejected by this version of the code)

Change-Id: Ife844a62f3846c0a780259e9a3a08195e2fd965e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1068
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-12-13 18:56:19 +00:00
Autocomitter
7c8377101f Update translations from Pootle 2020-12-12 08:45:25 +00:00
Autocomitter
e46d640063 Update translations from Pootle 2020-12-05 08:43:08 +00:00
Autocomitter
59bd13bc5e Update translations from Pootle 2020-11-28 08:44:27 +00:00
Autocomitter
8ef2ce074c Update translations from Pootle 2020-11-21 08:47:36 +00:00
roired
3216a85694 Move X-Bows keyboard layout file to the correct place
Change-Id: I7ddf11a4a4ae0aa04900f97678430d9330888808
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3238
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-11-17 07:19:25 +00:00
Autocomitter
85cf104567 Update translations from Pootle 2020-11-14 08:45:54 +00:00
Autocomitter
66b9faa816 Update translations from Pootle 2020-11-07 08:50:03 +00:00
Autocomitter
5c752d3160 Update translations from Pootle 2020-10-31 08:59:25 +00:00
Mark Barnett
072d3935c2 makefile-engine: Fix driver compilation on x86_64
Remove unnecessary -fno-pic and make sure x64 linker output doesn't
put too much space between program header sections. By default, the
GNU linker will align program headers to page boundaries. In Haiku's
x86_64 builds this is 2MB, which the kernel considers to be too
much wasted space.

Fixes #15702

Change-Id: I2adce69b3de74340b05f7c0e8cda44d1b25b69fa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3361
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-30 07:41:17 +00:00
Autocomitter
d88490a505 Update translations from Pootle 2020-10-24 08:48:24 +00:00
Autocomitter
cc149396d1 Update translations from Pootle 2020-10-17 08:51:10 +00:00
Autocomitter
d0e006f556 Update translations from Pootle 2020-10-03 08:53:57 +00:00
Autocomitter
09c2ad7991 Update translations from Pootle 2020-09-26 08:48:31 +00:00
Sylvain78
56ce1249b2 Adding a keyboard layout for the Fizzbook Zoostorm NL2
Change-Id: I534055ab9f37c8489900970b4662e52c1ec6a7b7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3231
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-09-22 06:36:52 +00:00
Autocomitter
5986ba8cb1 Update translations from Pootle 2020-09-19 09:16:39 +00:00
Autocomitter
e2172f7459 Update translations from Pootle 2020-09-12 08:49:03 +00:00
Autocomitter
603367cf7e Update translations from Pootle 2020-09-05 08:50:10 +00:00
Alexander von Gluck IV
b24dbf95d0 riscv64/boot: Add same u-boot potential that arm has, drop L_DYNAMIC
* Tianocore is still in an early state for RISCV64 with a lot of work
  needed around qemu support.
* u-boot however is working, and can load EFI binaries... so follow the
  arm model for now. (EFI via u-boot, or EFI via EFI Bios)

Change-Id: I3dfde25db17b114aedce6faefc58d7556e17a46a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3176
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-09-02 20:55:06 +00:00
Autocomitter
e292feb2ea Update translations from Pootle 2020-08-29 08:45:19 +00:00
Autocomitter
d9a347dc40 Update translations from Pootle 2020-08-22 08:45:14 +00:00
Autocomitter
105519f79a Update translations from Pootle 2020-08-15 08:45:06 +00:00
Adrien Destugues
2c09e0dc7f Installer: separate writing bootsector from other install finishing code
Remove the InstallerInitScript (it does nothing) and the
InstallerFinishScript (it does too many things). Instead implement the
finishing directly in Installer. Separate writing the bootsector, so
that the "write bootsector" menu writes only the bootsector.

Fixes #16303
2020-08-05 12:52:04 +02:00
Adrien Destugues
daf10ef340 install-wifi-firlwares: stop using haiku-files.org
- Move the firmwares to github
- Move broadcom fwcutter to a package

Fixes #11841
2020-08-04 10:52:19 +02:00
Autocomitter
7e8f3368fa Update translations from Pootle 2020-08-01 08:07:47 +00:00
Autocomitter
873f56ec13 Update translations from Pootle 2020-07-25 08:17:15 +00:00
CodeforEvolution
4c2a60b03d Icons: Add icon for wpa_supplicant
This was the last system daemon/server to not have an icon, so I thought I'd give a go at this!
This icon will still need to be added to Haiku's wpa_supplicant repository however.

Change-Id: Icd4e60ec759daaece30669aa8125fce953bbbf95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2698
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-22 01:36:13 +00:00
Autocomitter
bfa01f5213 Update translations from Pootle 2020-07-18 08:12:49 +00:00
Autocomitter
dabd6c739f Update translations from Pootle 2020-07-11 08:14:16 +00:00
Autocomitter
9802849814 Update translations from Pootle 2020-07-04 08:14:21 +00:00
Alexander von Gluck IV
9f739dd2e8 u-boot/arm: Break script out of Jamfile. Add EFI support.
* boot.scr was growing past Jam MAXLINE and was causing segfaults
* Break out to tree, data/boot could be used for other arches
* boot.scr is getting a bit complex, but supports the old
  u-boot haiku_loader, as well as u-boot starting our EFI loader.

Change-Id: I93a3167ab0bc78747c1d70fedd08595e9ac89662
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2963
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-29 16:18:32 +00:00
Autocomitter
1a83eab65b Update translations from Pootle 2020-06-27 08:16:31 +00:00
Autocomitter
cc7b6b5870 Update translations from Pootle 2020-06-20 08:11:47 +00:00
Autocomitter
6953cef14e Update translations from Pootle 2020-06-13 08:14:53 +00:00
Autocomitter
16ad15142c Update translations from Pootle 2020-06-09 21:51:25 +00:00
Humdinger
d01c68bc95 Update Installer logo wonderbrush file
...and revert 55109ae144 which changed
"HAIKU logo - black on white - installer.png" to have the stamp
"beta 2".
That one was supposed to only be applied to the r1beta2 branch.

Change-Id: I3287044b61b4e80d39aa07bde02a339d38cfef73
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2883
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-05 17:08:17 +00:00
Humdinger
55109ae144 Updated Installer logo for R1/beta2
Back to the good old alpha release stamp.
The font of the stamp is called SISTEMAS by Manuel Lage, available at
https://www.dafont.com/sistemas-font-bt.font
Change-Id: Idb56b9f1c7aa75929dc629cb17ef0ecbc378defa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2881
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 3ad7047a55)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2882
2020-06-05 16:05:39 +00:00
Augustin Cavalier
b0e768ac9c first_boot: Remove unused 'Locale settings'.
Change-Id: Iaf81d8741066c5da6d202c0baf3e95f7eb88caf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2810
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-25 22:26:25 +00:00
Augustin Cavalier
ba5694b017 idualwifi7260: Port changes from newer FreeBSD.
This adds support for the 9xxx series of devices.

Change-Id: I43385e91b91201732397b79c38bd9bb4f3a18f1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2733
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 23:34:32 +00:00
Humdinger
6bd96c5234 Update "Download Haiku" graphic for beta2
* beta1 -> beta2
* rotate the "beta2" stamp as it was remarked before that the stamp
  going 'uphill' is supposed to have better vibes than 'downhill' as
  it's now...

Change-Id: I60a60a1ba36ac11817294c91deecc555582e039e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2697
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-15 01:53:13 +00:00
Adrien Destugues
f12419a91d Pulse: update Intel logo
They use a new logo since 2006.

While I'm at it, also add logos for Cyrix and Via which were missing
previously (there are a few other missing but they are even more
uncommon). Use vector logos which can be scaled as needed. However, the
CPU chip background is still a bitmap, so we can't scale things just
yet.

Fixes #15919.
2020-05-11 18:47:21 +02:00
Niels Sascha Reedijk
4bd6250035 Translations: remove various languages
* Greek (el) and Korean (ko) no longer made the norm to be included on the image.
* For bg, sl, hr, eo and cs, there were leftovers that should have been removed before.
2020-05-09 09:22:37 +01:00
Autocomitter
362f1bd35b Update translations from Pootle 2020-05-08 12:15:28 +00:00
Sergei Reznikov
7bf88c5132 Enable KeymapSwitcher automatically for some locales.
Change-Id: Ie3b49be07dd02227850cb0d7d2a7befca7992668
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2597
Reviewed-by: Sergei Reznikov <diver@gelios.net>
2020-05-07 22:07:58 +00:00
Autocomitter
13cb3249a7 Update translations from Pootle 2020-05-02 08:57:54 +00:00
Humdinger
e304f35430 Fix URL in install-wifi-firmwares.sh
Fixes #15916
2020-04-28 17:44:57 +02:00
bitigchi
a67bbcb799 Display localised application/preference names by default
By default, Haiku does not provide localised names for applications and
preference names. This commit changes the default setting to 'true',
for displaying the localised variants.

This is generally bad UX, especially for the preference preflets,
since the user will have no idea where to go if he/she does not
speak English (even will not be able to find this setting presumably).

Change-Id: I17dea9428541be50e27227ba15f9afcde21a99d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2002
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
Reviewed-by: humdinger <humdingerb@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-28 00:44:07 +00:00
Autocomitter
dc0bc42494 Update translations from Pootle 2020-04-25 09:02:45 +00:00
Niels Sascha Reedijk
ff8a1e374c Remove obsolete catalogs 2020-04-18 10:34:48 +01:00
Autocomitter
04d1d2da0b Update translations from Pootle 2020-04-18 09:03:25 +00:00
Autocomitter
d82800d2db Update translations from Pootle 2020-04-11 08:59:25 +00:00
CodeforEvolution
d12bb8b148 Fixup Tracker Icon
The last time I checked, dogs don't have the power of telekinesis. :)
Primarily changed the Tracker icon in all places to have the Tracker
mascot hold the window in its mouth (like in BeOS), rather than the
window just levitating in front of the dog.

Change-Id: Ic60d3b0cb47e5995a639b494bf63af9ca21ef7d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2408
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-04-08 14:13:53 +00:00
Autocomitter
1e4cb11ffd Update translations from Pootle 2020-04-04 08:57:41 +00:00
Autocomitter
ece3c314d2 Update translations from Pootle 2020-03-28 08:51:26 +00:00
Autocomitter
58b3e18891 Update translations from Pootle 2020-03-21 08:48:09 +00:00
Autocomitter
1757f197bd Update translations from Pootle 2020-03-14 08:53:08 +00:00
John Scipione
0d2645e44f Deskbar: New single line mini-mode
Mini-mode is when Deskbar is in the 4 corners with the application
menu tucked away into the leaf menu bar. This commit changes mini-
mode from putting the clock and replicants below the leaf menu to
attaching them to the side forming a single line.

The main advantage of this is that if Deskbar is in the top right
corner you can maximize a window without losing any access to
Deskbar or any screen real-estate. The other three corners lose screen
real-estate similar to horizontal mode.

Replace team icon with HVIF version kindly donated by meanwhile.
Scale icon size according to font size. Grow the vector rendered icon
size by 1px to match bitmap size. Add Team_Registrar icon to
data/artwork/icons. Tweak Team_Registrar icon to match the area of the
bitmap taken up by the bitmap icon so they will render at the same size.
The bitmap can be now NULL if an invalid icon is passed, handle this
case with an fInitStatus member in BarMenuTitle.

Switch order of leaf and team menus on the left side so that the
team menu is always on the screen edge. The team menu is more in
need of quick corner access than the leaf menu in this mode.

Adjust leaf menu position so that it continues to be cut-off while
allowing the team menu icon to display normally. Center vertically in
horizontal mode but it's still cut-off at 16x16. In vertical mode the
leaf continues to be cut-off at all font sizes. Constrain leaf bitmap
to its menu item frame as it can bleed out into the adjacent team menu
item at larger font sizes.

Grow team menu items to fit the widest label up to the max vertical
expando window width (currently 2x min) before truncating.
LegacyPackageInstaller now fits in the team menu. More on
LegacyPackageInstaller in horizontal mode below.

Update SetSizeLimits for mini-mode - no upper limit on height or width.

Switch to mini-mode using 1/4 screen left and right of screen instead
of using 1/6. Mini mode is now wider and this change makes switching
between mini mode and horizontal mode more reliable.
 * Rename frame to screenFrame here for clarity.

Set menu bar height to window tab height in vertical mode. This is
so that when you maximize a window the tab size will match. The menu
bar height is also a few pixels taller (25px vs 21px) than it was in
vertical expando mode at the default 12px font size. The change was
made to match the tab height. 21px was the height of a window tab
on BeOS R5's default decorator.

Adjust the width of the team menu for larger icon sizes. If app
names are hidden limit to half of min width so the menu doesn't
appear too short. SetMaxContentSize to width, this fixes a bug where
the menu item wasn't quite the right size for the menu.

No longer truncate time in vertical mini mode because the time can now
expand itself horizontally without limit (within reason.)

Center replicants vertically in mini-mode based on tab height and max
replicant height. Simplify mini-mode menu width and position calculation.
Fix a bar menu bar placement bug when Deskbar starts hidden in mini-mode.

Fix numerous layout issues. Put replicant tray where it should be in all
modes and then start adjusting things. The Replicant tray is now where
it should be in all modes, any fiddling with replicant icon locations
now can be relegated solely to LocationForReplicant().

Implements bug #5876 step 1.

*** Other related Deskbar improvements also made in this commit ***

Implemented underflow in horizontal mode ExpandoMenuBar to make items
wider when you close a team to take up more of available space. Max item
width is currently set to 1.25x min width so that LegacyPackageInstaller
fits in horizontal mode as well. In team menu it make sense to calculate
the widest label but in horizontal mode it would not be very nice if
ARogueAppWithAVeryVeryLongAndAnnoyingName were to grow all of your team
menu items. 1.25x is a fair compromise that gets us some extra width but
not too much. ExpandoMenuBar will truncate items to minimum width to buy
some space before it turns on the scroll arrows. Eliminate
kMinMenuItemWidth, create convinience methods to calculate limits.

Add BarView pointer to TimeView. Ditch fVertical and SetOrientation
in TTimeView and get the information from BarView instead. This way
we don't have to keep the state in sync. Also pass BarView pointer to
TTeamMenu constructor and use it instead of getting the pointer in a
roundabout way from be_app.

Eliminate kMiniHeight constant, the mini-mode height is now based
on the height of a window tab which changes with be_bold_font size.
Limit maximum height of replicants by be_bold_font size as well.
Also limit team menu and leaf menu icon heights by be_bold_font size.

Eliminate TExpandoMenuBar::fVertical, use fBarView instead. Switch the
order of layout and barView in ctor so that barView can be optional.
Change the ctor vertical param to layout and use the passed-in menu_layout
to pass to BMenuBar only. Once TExpandoMenuBar has been constructed, use
fBarView from then on. In Deskbar the menu_layout can change via
BMenuPrivate::SetLayout, if we needed to know TExpandoMenuBar's menu_layout
for some reason, we can call Layout().

Maintain 2px border around replicants in vertical expando mode on all
sides. Maintain 2px border around replicants in horizontal mode, except for
at 16x16 reduce the border to 1px because we're really short on height.
Improve clock centering in vertical expando mode. Also improve clock
centering in mini-mode across all font sizes. Reduce clock height by 2px
so that it won't draw over the top and bottom borders in horizontal mode.

Refactor TBarView::PlaceTray(). The code is basically the same but the
method is now better layed out. Calculate resize dragger location based
on width setting. This is valid since it is only ever used in vertical
expando mode. Hide the resize control better by moving it off-screen
when not in use. Hide() alone was not enough.

Fix size and position of the drag region to prevent minor drawing glitches
that were occuring in horizontal and left vertical mode because the drag
region was not in quite the right size and place.

Call DrawDragger() from DrawAfterChildren() instead of Draw() (and set
B_DRAW_ON_CHILDREN flag) so that the dragger will always be drawn even if
there are other items on top. In theory this should not be needed but in
practice this fixes a few drawing glitches. Rename DrawDragRegion() to
private DrawDragger() method - the name was confusing and other classes
shouldn't be allowed to draw the dragger directly.

TDragRegion should be renamed to TStatusView since that's what it really is.
Then we should create a new TDragControl class based on TResizeControl that
is a child of TStatusView like everybody else. TDragControl would be
responsible for drawing itself and knowing where its bounds are. For now
DrawAfterChildren() will have to do.

Rework status tray border drawing. It is identical in vertical exando mode
and in the same spirit in horizontal mode just a little bit nicer looking.
Draw hilight on top, left, and bottom edges in horizontal mode. Draw hilight
on top, and left edges in mini-mode this creates the appearance of a shadow.
Best appreciated using Magnify.

May the following (Open Tracker License) code forever be memorialized in
this commit message:

void
TDragRegion::Draw(BRect updateRect)
{
	rgb_color menuColor = ViewColor();
	rgb_color hilite = tint_color(menuColor, B_DARKEN_1_TINT);
	rgb_color ldark = tint_color(menuColor, 1.02);
	rgb_color dark = tint_color(menuColor, B_DARKEN_2_TINT);
	rgb_color vvdark = tint_color(menuColor, B_DARKEN_4_TINT);
	rgb_color light = tint_color(menuColor, B_LIGHTEN_2_TINT);

	BRect frame(Bounds());
	BeginLineArray(4);

	if (be_control_look != NULL) {
		if (fBarView->Vertical()) {
			AddLine(frame.LeftTop(), frame.RightTop(), dark);
			AddLine(BPoint(frame.left, frame.top + 1),
				BPoint(frame.right, frame.top + 1), ldark);
			AddLine(frame.LeftBottom(), frame.RightBottom(), hilite);
		} else if (fBarView->AcrossTop() || fBarView->AcrossBottom()) {
			AddLine(frame.LeftTop(),
				BPoint(frame.left, frame.bottom), dark);
			AddLine(BPoint(frame.left + 1, frame.top + 1),
				BPoint(frame.right - 1, frame.top + 1), light);
			AddLine(BPoint(frame.right, frame.top + 2),
				BPoint(frame.right, frame.bottom), hilite);
			AddLine(BPoint(frame.left + 1, frame.bottom),
				BPoint(frame.right - 1, frame.bottom), hilite);
		}
	} else {
		if (fBarView->Vertical()) {
			AddLine(frame.LeftTop(), frame.RightTop(), light);
			AddLine(frame.LeftTop(), frame.LeftBottom(), light);
			AddLine(frame.RightBottom(), frame.RightTop(), hilite);
		} else if (fBarView->AcrossTop()) {
			AddLine(BPoint(frame.left, frame.top + 1),
				BPoint(frame.right - 1, frame.top + 1), light);
			AddLine(frame.RightTop(), frame.RightBottom(), vvdark);
			AddLine(BPoint(frame.right - 1, frame.top + 2),
				BPoint(frame.right - 1, frame.bottom - 1), hilite);
			AddLine(frame.LeftBottom(),
				BPoint(frame.right - 1, frame.bottom), hilite);
		} else if (fBarView->AcrossBottom()) {
			AddLine(BPoint(frame.left, frame.top + 1), BPoint(frame.right - 1, frame.top + 1), light);
			AddLine(frame.LeftBottom(), frame.RightBottom(), hilite);
			AddLine(frame.RightTop(), frame.RightBottom(), vvdark);
			AddLine(BPoint(frame.right - 1, frame.top + 1),
				BPoint(frame.right - 1, frame.bottom - 1), hilite);
		}
	}

	EndLineArray();
}

Refactor mode switching.

Change TDragRegion::SwitchModeForRect() to SwitchModeForRegion() and pass
in BRegion's instead of BRect's. Create a new CalculateRegions() method
which is called once at startup and again on ScreenChanged() instead of
calculating the rect's over and over again inside MouseMoved(). Simplify
calculations using BRegion's.

Get the screen_where parameter from the Window()'s CurrentMessage() instead
of converting the passed in where parameter to screen coordinates. This
makes mode switching work 100% better.

Restore full state, fix all issues, and disable it again.

Fix issue with the window not resizing itself correctly when hiding the
scroller arrows in vertical expando mode because Deskbar was using the
bottom value of a scrolled view rather than its height. We only need to
call CheckForScrolling() once before we resize the window. Consolidate all
the window resizing code into ExpandoMenuBar::SizeWindow(), call
CheckForScrolling() there one time, then resize the window and lay
everything out again.

Simplify expando menu bar background drawing. The only part of this
drawing code that was actually being shown was the part where it stroked a
vertical line like this:

rgb_color menuColor = ui_color(B_MENU_BACKGROUND_COLOR);
SetHighColor(tint_color(menuColor, 1.22));
StrokeLine(bounds.LeftTop(), bounds.LeftBottom());

The rest of the code was never seen. May the following code also be forever
memorialized in this commit message:

void
TExpandoMenuBar::DrawBackground(BRect updateRect)
{
	if (Vertical())
		return;

	BRect bounds(Bounds());
	rgb_color menuColor = ui_color(B_MENU_BACKGROUND_COLOR);
	rgb_color hilite = tint_color(menuColor, B_DARKEN_1_TINT);
	rgb_color vlight = tint_color(menuColor, B_LIGHTEN_2_TINT);

	int32 count = CountItems() - 1;
	if (count >= 0)
		bounds.left = ItemAt(count)->Frame().right + 1;
	else
		bounds.left = 0;

	if (be_control_look != NULL) {
		SetHighColor(tint_color(menuColor, 1.22));
		StrokeLine(bounds.LeftTop(), bounds.LeftBottom());
		bounds.left++;
		uint32 borders = BControlLook::B_TOP_BORDER
			| BControlLook::B_BOTTOM_BORDER | BControlLook::B_RIGHT_BORDER;

		be_control_look->DrawButtonBackground(this, bounds, bounds, menuColor,
			0, borders);
	} else {
		SetHighColor(vlight);
		StrokeLine(bounds.LeftTop(), bounds.RightTop());
		StrokeLine(BPoint(bounds.left, bounds.top + 1), bounds.LeftBottom());
		SetHighColor(hilite);
		StrokeLine(BPoint(bounds.left + 1, bounds.bottom),
			bounds.RightBottom());
	}
}

Change-Id: Id9ddd60c997a785184208ba02938bee1416aeae9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2253
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-03-09 08:48:46 +00:00
Autocomitter
30f2ededbf Update translations from Pootle 2020-03-07 08:58:35 +00:00
Autocomitter
adcf5b05a8 Update translations from Pootle 2020-02-29 08:54:40 +00:00
Autocomitter
cc89f2de18 Update translations from Pootle 2020-02-22 08:48:23 +00:00
Alexander von Gluck IV
b9db31f649 EFI: Add VolumeIcon to EFI system partition
Change-Id: Idc50cfee16db5f7c0dbea625a7739ad42b2d7bf0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2249
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-02-17 14:31:59 +00:00
Autocomitter
a42a10c319 Update translations from Pootle 2020-02-15 08:48:39 +00:00
Autocomitter
5833d3b64c Update translations from Pootle 2020-02-08 08:50:46 +00:00
Adrien Destugues
8095ab5a4b Installer: use Walter as a placeholder logo
For non-official builds, Installer had no logo. This led to a window
sizing bug which is not seen in the official builds (both nightlies and
releases) as they both use the Haiku logo there.

Use Walter as a placeholder logo in that case. The png is generated from
the wonderbrush file in the separate artwork repo.

Change-Id: Iea361d7ac0fd2bdb147318632ff198c86c4b89c2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2180
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-02-02 23:45:05 +00:00
Autocomitter
4a2bab12b1 Update translations from Pootle 2020-02-01 08:52:52 +00:00
Adrien Destugues
3aba70f980 install_wifi_firmwares: fix build of b43-fwcutter
byteswap.h was removed from glibc in current versions, so point to an
older git revision to get it.
2020-02-01 09:28:39 +01:00
Autocomitter
89ae33c9f6 Update translations from Pootle 2020-01-25 08:47:08 +00:00
Autocomitter
30de32ecb1 Update translations from Pootle 2020-01-18 08:52:55 +00:00
Autocomitter
c8d241ea1e Update translations from Pootle 2020-01-04 08:45:51 +00:00
Adrien Destugues
baa4caf76b Fix NTP synchronization.
Fixes #15408.
2019-12-31 16:20:11 +01:00
Autocomitter
eeb89ccd8b Update translations from Pootle 2019-12-21 08:48:38 +00:00
Autocomitter
2b2bfa3f27 Update translations from Pootle 2019-12-14 08:42:48 +00:00
Autocomitter
d30c60446a Update translations from Pootle 2019-12-07 08:47:19 +00:00
Autocomitter
e1d1ce10bd Update translations from Pootle 2019-11-30 08:47:21 +00:00
Humdinger
9e15c9f153 Adding the Quick Tour
* Add a link to the Quick Tour to the desktop.
* Remove the Welcome page from desktop. We don't want to clutter
  the user's desktop more than necessary. As "Home" page of
  WebPositive, it's still very visible.
* Mention the Quick Tour in the Welcome package description.
* Add a "quicktour" script similar to the welcome/userguide
  that opens the online version if it's not installed locally.
* Add icons to the userguide and quicktour scripts. Fixes #14706.
* Add bookmark and launcher for the Quick Tour.

Adjust the AddFileDataAttributeRule to create its temporary file in
the "common" architecture, the file is not architecture specific.

Add a rule PrepareScriptWithIcon in src/data/bin/Jamfile to assign
an icon and make the script executable.

Change-Id: Ia7604ff4715a5aaf9a645c1b3333a954d6a4dafc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1924
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-11-26 06:39:58 +00:00
Autocomitter
f1304c1a4e Update translations from Pootle 2019-11-23 08:43:15 +00:00
Autocomitter
c8deb11d5d Update translations from Pootle 2019-11-16 08:44:40 +00:00
Autocomitter
443d472f50 Update translations from Pootle 2019-11-09 08:41:42 +00:00
Autocomitter
85472484a8 Update translations from Pootle 2019-11-02 08:47:00 +00:00
Autocomitter
f02f815ed4 Update translations from Pootle 2019-10-26 09:01:21 +00:00
Autocomitter
200cb331ef Update translations from Pootle 2019-10-19 08:47:49 +00:00
Autocomitter
9fb709d683 Update translations from Pootle 2019-10-12 08:50:26 +00:00
Autocomitter
0bbd5bb161 Update translations from Pootle 2019-10-05 08:40:45 +00:00
Autocomitter
7f634d790b Update translations from Pootle 2019-09-28 08:46:19 +00:00