Opened 11 years ago

Last modified 9 years ago

#9202 assigned enhancement

Icon / background position

Reported by: dsjonny Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/libtracker.so Version: R1/alpha4.1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

It would be nice if we would be able to set the relative position of the background and icons to any corner or any side of the window.

Example for the background: I want to set the Haiku logo relative to the bottom and the right side of the screen at 100px. So, the background image will be at the (screen height-100-image height)x(screen width-100-image width) position in all screen resolution.

Now in Haiku the wallpaper and the icons are in a predefined xy location. If I use the Haiku (from an USB stick) on more PCs the monitors may have different resolutions. I use a desktop PC with a HD monitor and the Trash is at the right-bottom corner. If I got a smaller monitor with low resolution, we may not see the Trash or the full background (like as the default Haiku logo). After I go to another PC with a high resolution monitor, than the Trash icon will be at another position (the xy position will be the same as on the monitor with lower resolution was).

I have attached a screenshot for the better understand.

Attachments (1)

screen.png (50.0 KB ) - added by dsjonny 11 years ago.

Download all attachments as: .zip

Change History (4)

by dsjonny, 11 years ago

Attachment: screen.png added

comment:1 by dsjonny, 11 years ago

Maybe the solution is simthing like this?:

BackgroundImage.cpp at line 231

		case kAtOffset:
			destinationBitmapBounds.OffsetTo(info->fOffset);
-->>			followFlags = B_FOLLOW_BOTTOM | B_FOLLOW_RIGHT;			<<--
			break;

I have tested it, but the background image was not always updated when I switch between workspaces (with different resolution).

comment:2 by anevilyak, 9 years ago

Owner: changed from anevilyak to nobody
Status: newassigned

comment:3 by waddlesplash, 9 years ago

Milestone: R1Unscheduled

Moving libtracker.so enhancement tickets out of R1 milestone -- Tracker's source code comes from BeOS R5, so it already has all the features it did on R5.

Note: See TracTickets for help on using tickets.