Deskbar: Resizable tray

* Adds max width and height arguments to
  instantiate_deskbar_(item|entry).
* Old applications just stay with a 16x16 scaled icon, though.
* All used apps within the repository are converted to the new call
  besides the input_server input method icon (that will need further
  API changes in the input_server).

Change-Id: I29cc439396917be2c24135888459d31364997dff
Reviewed-on: https://review.haiku-os.org/656
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Axel Dörfler
2018-11-04 19:00:49 +00:00
committed by waddlesplash
parent 1ad1c1c87b
commit efafab643c
20 changed files with 196 additions and 90 deletions
+3 -2
View File
@@ -640,8 +640,9 @@ MediaReplicant::_ConnectMixer()
extern "C" BView*
instantiate_deskbar_item(void)
instantiate_deskbar_item(float maxWidth, float maxHeight)
{
return new MediaReplicant(BRect(0, 0, 16, 16), kReplicantName);
return new MediaReplicant(BRect(0, 0, maxHeight - 1, maxHeight - 1),
kReplicantName);
}