postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Menu bar on Postman for Linux with Dark Mode

Open Iftakharpy opened this issue 3 years ago • 13 comments

Is there an existing issue for this?

  • [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed

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

Iftakharpy avatar Aug 17 '22 19:08 Iftakharpy

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.

Radek-Pysny avatar Jun 02 '23 13:06 Radek-Pysny

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

emko avatar Jun 13 '23 17:06 emko

Postman ignores linux app. Just use another app.

gokomer avatar Jun 15 '23 21:06 gokomer

Postman ignores linux app. Just use another app.

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

emko avatar Jun 15 '23 21:06 emko

insomnia supports dark menu bar and hiding menu bar.

gokomer avatar Jun 15 '23 21:06 gokomer

Hey any update?

Bishwas-py avatar Oct 23 '23 04:10 Bishwas-py

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

moritztim avatar Jan 09 '24 14:01 moritztim

same issue on fedora either native or flatpak

jefaokpta avatar Jan 17 '24 18:01 jefaokpta

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

3ximus avatar Jan 30 '24 18:01 3ximus

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,
  });
}

SainathPoojary avatar May 18 '24 17:05 SainathPoojary

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

Worked like a charm!

goldyfruit avatar Jul 08 '24 01:07 goldyfruit

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

BaktashGorgani avatar Jul 22 '24 20:07 BaktashGorgani

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

FilthySchmitz avatar Jul 24 '24 12:07 FilthySchmitz

its a shame, it is electron, why is there an other bar as on windows?

celevra avatar Mar 06 '25 18:03 celevra

linux 11.43.2

edit /opt/postman/app/resources/app/main.js

replace "darwin"===process.platform&&Object.assign(v,{titleBarStyle:"hidden",titleBarOverlay:!0,trafficLightPosition:b}) to Object.assign(v,{autoHideMenuBar:true})

Image

puzzle9 avatar May 12 '25 19:05 puzzle9

linux 11.43.2

edit /opt/postman/app/resources/app/main.js

replace "darwin"===process.platform&&Object.assign(v,{titleBarStyle:"hidden",titleBarOverlay:!0,trafficLightPosition:b}) to Object.assign(v,{autoHideMenuBar:true})

Image

Works perfect

Image

JhonyPalencia avatar May 12 '25 21:05 JhonyPalencia

This hack still works

flatpak install org.gtk.Gtk3theme.Breeze-Dark
flatpak override --env=XCURSOR_THEME=Breeze-Dark com.getpostman.Postman

techiedesu avatar Aug 06 '25 03:08 techiedesu

any updates for ubuntu 25.04?

missipsag avatar Sep 24 '25 08:09 missipsag