postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.81k stars 839 forks source link

Menu bar on Postman for Linux with Dark Mode #11197

Open Iftakharpy opened 2 years ago

Iftakharpy commented 2 years ago

Is there an existing issue for this?

Describe the Issue

As issue #5302 is specific to windows this issue is specific to Linux and I am using pop os. I can't find any option in the settings to get rid of the system default title bar nor postman automatically uses its custom title bar as on windows os. Below is a picture of Postman on windows and this is what it should look like on Linux as well. 179939489-a6cf8a3f-6ecc-4de5-a94d-d6a4938b1013

Instead on Linux, the title bar looks like the below picture. Screenshot from 2022-08-18 00-53-51

Steps To Reproduce

  1. Install Postman using snap package manager.
  2. Run Postman and look a the title bar.

Screenshots or Videos

Screenshot from 2022-08-18 00-53-51

Operating System

Linux

Postman Version

9.27.0

Postman Platform

Postman App

Additional Context?

No response

Radek-Pysny commented 1 year ago

It is not only about the color of the main menu, but also the file dialog (e.g. for exporting the collection) is light, which is breaking the dark immersion... 😁

Is there a chance to fix this bug also for Linux users? Thanks in advance.

emko commented 1 year ago

is there any updates? all other electron apps don't have this behaviour i am on fedora and using the flatpak

gokomer commented 1 year ago

Postman ignores linux app. Just use another app.

emko commented 1 year ago

Postman ignores linux app. Just use another app.

seems like it, when every other electron app works fine on linux...

gokomer commented 1 year ago

insomnia supports dark menu bar and hiding menu bar.

Bishwas-py commented 10 months ago

Hey any update?

moritztim commented 8 months ago

Here's how GitHub Desktop does it Title Bar Setting https://github.com/desktop/desktop/blob/805e439b7afde3ed2782a1350a0aef4254e9940d/app/src/ui/window/title-bar.tsx

jefaokpta commented 8 months ago

same issue on fedora either native or flatpak

3ximus commented 7 months ago

If you've downloaded Postman from their website and you're able to edit the resources it's a pretty easy modification to set the menu bar to auto-hide (same should be possible with flatpak package):

On Postman/app/resources/app/services/windowManager.js:657: You can add the option:

    if (process.platform === 'linux') {
      Object.assign(browserWindowOptions, {
        autoHideMenuBar: true,
      });
    }

And it should be auto hidden. You can still use Alt key to bring it back again

SainathPoojary commented 3 months ago

If you've downloaded Postman from their website and you're able to edit the resources it's a pretty easy modification to set the menu bar to auto-hide (same should be possible with flatpak package):

On Postman/app/resources/app/services/windowManager.js:657: You can add the option:

    if (process.platform === 'linux') {
      Object.assign(browserWindowOptions, {
        autoHideMenuBar: true,
      });
    }

And it should be auto hidden. You can still use Alt key to bring it back again

This worked for me. Add it below this code

if (isWindows()) {
  Object.assign(browserWindowOptions, {
    frame: false
  });
}

like this:

if (isWindows()) {
  Object.assign(browserWindowOptions, {
    frame: false
  });
}

if (process.platform === 'linux') {
  Object.assign(browserWindowOptions, {
    autoHideMenuBar: true,
  });
}
goldyfruit commented 2 months ago
if (process.platform === 'linux') {
  Object.assign(browserWindowOptions, {
    autoHideMenuBar: true,
  });
}

Worked like a charm!

BaktashGorgani commented 1 month ago

So I have this installed via flatpak so I don't think I could easily change this. Is this going to become a regular feature at one point? Or am I better off installing via source and making the manual change suggested above.

Right now it's very ugly looking

image

FilthySchmitz commented 1 month ago

any update on this one? using flatpak version 11.4.0, issue still present