Skip to content

Make it possible to set the coordinates of the window controls #7705

Closed

Description

@paulrouget

In Browser.html, the default position of the window controls (close,max,min buttons) is wrong:

screen shot 2015-09-22 at 10 41 31

We at least need a glutin method to set the window controls coordinates.

Then, maybe we can hardcode the position in Servo, or, like in Gecko, let the document define the position of the controls (gecko uses -moz-appearance: -moz-window-titlebar).

Activity

  1. waddlesplash commented on Sep 25, 2015

    @waddlesplash

    Why does the URL bar say 'HTTP' not 'HTTPS' here? Is that a miscommunication between Servo and Browser.html?

  2. jdm commented on Sep 25, 2015

    @jdm
    Member

    Presumably we don't implement the appropriate events to inform the embedding about redirects.

  3. paulrouget commented on Sep 26, 2015

    @paulrouget
    ContributorAuthor

    Why does the URL bar say 'HTTP' not 'HTTPS' here? Is that a miscommunication between Servo and Browser.html?

    Oh, ignore the content of the screenshot. It's a prototype. The URL is hardcoded.

  4. added
    P-mac
    on Oct 5, 2015
  5. paulrouget commented on Feb 26, 2016

    @paulrouget
    ContributorAuthor

    I've been trying to use button.setFrame and button.setFrameOrigin, but for some reason, I can only change the size of the buttons, not their position.

  6. paulrouget commented on Jun 6, 2018

    @paulrouget
    ContributorAuthor

    That's up to the embedder now. In the case of winit-based windows, one can use WindowExt::get_nswindow() to access the buttons and move them around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-mac

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions