Git Product home page Git Product logo

Comments (2)

AEAEAEAE4343 avatar AEAEAEAE4343 commented on June 8, 2024

I think the general direction we're going in is:

  • Create a 'TabBar' control that hosts the controls
  • When it reaches a specific size (eg 80px) stop making controls smaller
  • Create a second tab bar and add buttons to switch between the tab bars in order to get the same effect as in the image

from simpleclassictheme.taskbar.

Craftplacer avatar Craftplacer commented on June 8, 2024

Create a 'TabBar'

Unrelated to the issue, I think we need to come up with a name we use to call those taskbar buttons (maybe look around Windows dev docs to find out how they're called?)

When it reaches a specific size (eg 80px) stop making controls smaller

Probably something like

var maxButtonWidth = availableSpace / amountOfPrograms;
var actualButtonWidth = Math.Min(maxButtonWidth, 100/*pixels*/); // take default size or smaller

var doWrap = maxButtonWidth < 80/*pixels*/;
if (doWrap)
  /* split list of programs into pages... */

Create a second tab bar

Could work, there are other approaches to take though, like resetting the displayed buttons or hiding/showing them (while locking UI updates to prevent flicker and unnecessary repaints).

from simpleclassictheme.taskbar.

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.