Git Product home page Git Product logo

Comments (15)

robbertkl avatar robbertkl commented on September 2, 2024 4

Hi, thank you for your feedback. The Fn-toggle was designed to appear at your mouse pointer when needed, and to be dismissed when you're done. It isn't really meant to be stationary on the screen. However, if you put your mouse pointer in the bottom center of the screen, the Touch Bar should appear centered and aligned to the bottom of the screen. The Touch Bar is rendered at it's original resolution, which is 1085x30. I assume you're running your MacBook Pro on a 1280x800 resolution, so this should leave 195px (or around 97 on each side if centered).

We're considering adding a stationary, permanent on-screen Touch Bar that sticks to the bottom of the screen, but this will be separate from the Fn-toggle option. For this Touch Bar, we would make it extend to the full width of your screen, either by scaling the Touch Bar, or adding black regions left and right.

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

Around how much time until this feature is implemented? (@robbertkl)

from touchbardemoapp.

robbertkl avatar robbertkl commented on September 2, 2024

No idea yet. Please note that this is just a demo app, not a fully featured product. That being said, we might still add some small features in the coming days/weeks.

from touchbardemoapp.

nakulbajaj avatar nakulbajaj commented on September 2, 2024

Hi @esteszeke,

If you're up for it, you can try to install the modified version that I made which always centers the Touch Bar to the bottom. (attached) Of course, it will not update like the genuine version. Let me know if it works for you. Keep in mind that it will interfere with the dock if the dock is kept at the bottom.

Thanks

TouchBarServer.app.zip

from touchbardemoapp.

MarcoBrandao avatar MarcoBrandao commented on September 2, 2024

However, if you put your mouse pointer in the bottom center of the screen, the Touch Bar should appear centered and aligned to the bottom of the screen.

Thank you for this tip, now I moved my dock to the left side of my screen.

from touchbardemoapp.

fulldecent avatar fulldecent commented on September 2, 2024

I like this feature's idea of

  • Pressing FN to enable/disable touch bar
  • Locating the touch bar at the bottom-center of the screen

I would prefer this to #3 (comment) that is

  • Enable touch bar permanently
  • Locating the touch bar at the bottom-center of the screen

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

Hey @nakulbajaj can you give us the source code for your version please?

from touchbardemoapp.

nakulbajaj avatar nakulbajaj commented on September 2, 2024

Hi @wwdc17

All I really did was switch out
[_touchBarWindow setFrameOrigin:self.mouseTouchOrigin];

in the toggleTouchBarWindow method in AppDelegate.m of TouchBarServer with

NSRect e = [[NSScreen mainScreen] frame];
int width = (int)e.size.width - 1095;
width = width/2;
NSPoint centerBottomPoint = CGPointMake(width, 0);
[_touchBarWindow setFrameOrigin:centerBottomPoint];

I understand that it's not neat but it works! I did some math there to figure out the width of the screen and then found the x value knowing that the touch bar width seems to be 1095. Should work for all screen sizes.

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

OK, thanks! I'm gonna work with my 0.1% proficiency to make it have black bars on either side :P

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

You wanna submit a pull request or should I?

from touchbardemoapp.

nakulbajaj avatar nakulbajaj commented on September 2, 2024

I could submit a PR but I decided not to just because I don't want it to default to the center and bottom. I want the user to be able to continue choosing a different location with their mouse.

Do you mind adding another menu item which can enable the functionality I made? Just a boolean that can be enabled or disabled?

Then by all means you can submit a PR πŸ‘

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

I don't even know how... 😞

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

@robbertkl Can you guys keep supporting this app?

from touchbardemoapp.

nakulbajaj avatar nakulbajaj commented on September 2, 2024

@wwdc17 If you're just using this app to have TouchBar functionality on your non-touchbar Mac, I strongly recommend TouchΓ©

from touchbardemoapp.

julianschiavo avatar julianschiavo commented on September 2, 2024

That... doesn't look good. It has a X button which takes up lots of space for nothing. I'd prefer using this πŸ˜›

from touchbardemoapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.