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:
committed by
waddlesplash
parent
1ad1c1c87b
commit
efafab643c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user