Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow preferences to specify initial selection of attribute values in the UI #235

Open
hildogjr opened this Issue Mar 29, 2019 · 7 comments

Comments

Projects
None yet
2 participants
@hildogjr
Copy link

hildogjr commented Mar 29, 2019

Pressing we can use access (use) the horizontal scroll by the mouse wheel.
On Ubuntu 16 - Ipe 7.2.11 this direction is opposite of the other software. The vertical scroll and zooms have them direction just fine.

@otfried

This comment has been minimized.

Copy link
Owner

otfried commented Mar 29, 2019

Just set

prefs.scroll.direction.x = -1

in your customization.

@hildogjr

This comment has been minimized.

Copy link
Author

hildogjr commented Mar 29, 2019

Perfect.
Should this be added by default after line 259?

@hildogjr hildogjr closed this Mar 29, 2019

@hildogjr

This comment has been minimized.

Copy link
Author

hildogjr commented Mar 29, 2019

I also can edit the default prefs.grid_size there. By can I edit the default "Pen width"?

@otfried

This comment has been minimized.

Copy link
Owner

otfried commented Mar 29, 2019

No, because pen widths are defined in a style sheet.

Make your own style sheet where you define pen width "normal" to mean whatever you want, then make this the default style sheet by setting

prefs.style = { "basic", "mystyle" }

("basic" is the standard style sheet. You could of course completely replace it with your own definitions.)

@otfried

This comment has been minimized.

Copy link
Owner

otfried commented Mar 29, 2019

By the way, the available grid sizes are also defined in the style sheet. The prefs setting only determines which setting is selected when Ipe starts.

@hildogjr

This comment has been minimized.

Copy link
Author

hildogjr commented Mar 29, 2019

Understood and thanks by tips.
So, is it possible:

prefs.pen_width = "hevier"
prefs.arrow_size = "small"

?
The default style is been nice for my documents, therefore I just want to change these 2 startup configurations.

@otfried

This comment has been minimized.

Copy link
Owner

otfried commented Mar 29, 2019

It's not currently possible, but it's a good idea, I will implement something like this for the next version.

In the meantime, you can open the file model.lua and modify the definition of self.attributes (very close to the top of the file), e.g. like this:

  self.attributes = {
    pathmode = "stroked",
    stroke = "black",
    fill = "white",
    pen = "heavier",
    dashstyle = "normal",
    farrowshape = "arrow/normal(spx)",
    rarrowshape = "arrow/normal(spx)",
    farrowsize = "small",
    rarrowsize = "small",
    farrow = false,
    rarrow = false,
    symbolsize = "normal",
    textsize = "normal",
    textstyle = "normal",
    transformabletext = prefs.transformable_text,
    horizontalalignment = "left",
    verticalalignment = "baseline",
    pinned = "none",
    transformations = "affine",
    linejoin = "normal",
    linecap = "normal",
    fillrule = "normal",
    markshape = "mark/disk(sx)",
    tiling = "normal",
    gradient = "normal",
    opacity = "opaque", 
  }

@otfried otfried reopened this Mar 29, 2019

@otfried otfried changed the title Wrong mouse horizontal scrolling Allow preferences to specify initial selection of attribute values in the UI Mar 29, 2019

@otfried otfried self-assigned this Mar 29, 2019

@otfried otfried added the enhancement label Mar 29, 2019

@otfried otfried added this to the 7.2.12 milestone Mar 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.