Git Product home page Git Product logo

Comments (6)

elkowar avatar elkowar commented on August 19, 2024

You can easily use a <box> to achieve exactly that, no? as in, have 3 boxes that fill out their container with equal width, then have those align their contents left/center/right respectively

from eww.

elkowar avatar elkowar commented on August 19, 2024

Also note that the <widget> tag allows you to put anything inside, so you can put those boxes directly in the <widget> tag

from eww.

Barbaross93 avatar Barbaross93 commented on August 19, 2024

Oh wow, I didn't realize I could use <box> within the <widget> tag! So to achieve what I'm looking for, I could do something like:

<windows>
    <window name="main_bottom">
        <geometry x="5%" y="75%" width="90%" height="25%"/>
        <widget>
                  <box class="main_bottom" orientation="h"  space-evenly="false">
                      <profile/>
                      <player/>
                      <launch/>
                      <weather/>
                      <system_info/>
                  </box>
          </widget>
      </window>
</windows>

Do I need to add <main_bottom/> after the </box>? Could I also put this <box> into the <def> block, calling it "main" and then place it in the <widget> block?

from eww.

elkowar avatar elkowar commented on August 19, 2024

Oh wow, I didn't realize I could use <box> within the <widget> tag! So to achieve what I'm looking for, I could do something like:

<windows>
    <window name="main_bottom">
        <geometry x="5%" y="75%" width="90%" height="25%"/>
        <widget>
                  <box class="main_bottom" orientation="h"  space-evenly="false">
                      <profile/>
                      <player/>
                      <launch/>
                      <weather/>
                      <system_info/>
                  </box>
          </widget>
      </window>
</windows>

Do I need to add <main_bottom/> after the </box>? Could I also put this <box> into the <def> block, calling it "main" and then place it in the <widget> block?

Not sure what you mean by the adding </main_bottom> after </box>, but yes, you could definitely also put it into def and use it in the widget block.

from eww.

Barbaross93 avatar Barbaross93 commented on August 19, 2024

After thinking about it more, I realized that the last <main_box/> is indeed unnecessary. I thought it may be needed to tell the window to open that particular widget. Simply doing eww open main_bottom is sufficient.

As an aside, I just wanted to say thank you so much for creating/sharing this project. You're an absolute visionary for the r/unixporn community!

from eww.

elkowar avatar elkowar commented on August 19, 2024

Thanks! <3

from eww.

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.