Giter Site home page Giter Site logo

ruler's Introduction

ruler

Simple on-screen pixel ruler.

download page

Releases

https://github.com/andrijac/ruler/releases

Legacy

Ruler is fork of small utility application originally developed by Jeff Key:

.NET version support

Support for .NET 2.0 is kept. Last version with .NET 2.0 support is 1.6. https://github.com/andrijac/ruler/releases/tag/1.6.0.0

Onward, Ruler will target .NET 4.6 which is deployed with Windows 10.

Added features in this fork.

Contributions

If you want to contribute to project, please follow the rules:

  1. Zero-Warning policy. There should be no C# compiler warnings in PR. ๐Ÿ™
  2. Use StyleCop Visual Studio Extension (by Chris Dahlberg) to check for StyleCop warnings https://marketplace.visualstudio.com/items?itemName=ChrisDahlberg.StyleCop. Zero-warning policy extends to StyleCop warnings. ๐Ÿ‘ฎ Custom StyleCop rules file is part of repository and it should be picked up by StyleCop in Visual Studio once you run it.
  3. Keep in mind that Ruler should be simple tool. It should be disposable, easy to run, easy to close, easy to run in multiple instances. For now, I still refuse to add any kind of additional dependency to project like persistent storage for Ruler settings (which are still, at the moment, few), having a Ruler icon in system tray etc. for sake of keeping Ruler simple. Since Ruler can run multiple instances, features mentioned would add unnecessary complexity to project. ๐Ÿ’ฌ
  4. Use Visual Studio 2017 2019 with latest updates. โ˜•

Ruler shortcuts:

  • Space and Double click: will toggle direction of Ruler
  • Arrow keys: move Ruler (+ Shift for small step)
  • Ctrl + Arrow keys: resize Ruler (+ Shift for small step)
  • Ctrl + S: open resize form

Command line parameters (optional):

In current implementation, you can either not use parameters (just start app) or use all parameters (you cannot used parameters selectively). Parameters are intended to be used internally to duplicate Ruler by passing configuration to new instance, but you can use them to save prefered Ruler configuration too The way parameters are passed to program and parsed might change in future.

ruler.exe [Width:int] [Height:int] [IsVertical:bool] [Opacity:double] [ShowToolTip:bool] [IsLocked:bool] [TopMost:bool]

Example: ruler.exe 100 50 false 0.6 true false true

Gifs are made using LICEcap http://www.cockos.com/licecap/

ruler's People

Contributors

alexis-m avatar andrijac avatar ben-burlingham avatar flmbray avatar harrisonheld avatar isaacmorris1980 avatar kahadev avatar leglock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruler's Issues

I like it!

I am very happy when I find it !
Thank you very much!

What is the license of this repository

Great application! I have used this a lot.

What is the license of this application? Can I distribute a binary I have compiled myself?
Can I make changes to the source code and distribute a binary?

Saving location?

This is a great little program, but is it possible to save the location & size for future use?

Duplicating vertical ruler creates wider ruler

When duplicating a vertical ruler, the duplicate ruler's width is almost 2 times as wide as original ruler.
issue also occurs in my pull request
Using build 1.4.5.0
Windows 10 Insider build 17063

Save Settings

It would be nice if the program would save its settings on exit so you don't have to re-enable tool tips, always on top, etc..

Scoop package

Hey,

Would you mind submitting this to the main`` or the extrasbucket of thescoop` project? Creating a manifest is rather simple. I'd do this myself, but I assume you might feel better if you distribute this yourself. For trust reasons of your user base. If you want to, I can write the manifest though. It should be rather simple to maintain and can be autogenerated from a template by either CI or a simple powershell script.

Ruler resizes if moved too quickly

When moving the ruler (via clicking inside the ruler and dragging it), it will resize if the mouse is moved "too quickly".

To replicate: left click and hold in the middle, then rapidly move the mouse, the ruler will begin to resize.

My system: Windows 10 v1607 build 14393.187, 64bit.

This occurred with the pre-built binary in bin/debug

Centimeters

Add ability to switch to centimenters for the metric world.

Flip Ruler

Probably not as useful for horizontal orientation, but for vertical orientation, it's useful for people looking to measure from the bottom of, say, a graph to the top of a bar or line, rather than position the ruler on the bar and then measure down. If we could flip the orientation so that the bottom of the rule stays constant and we adjust the top of the ruler to measure, life would be easier. Small thing, but I think it would be useful for more people than just me.

Opacity info is wrong after start of the program

Ruler 1.4.0.0
MD5 of Ruler.exe: d4698c417d853cee113335e20787a54d
Windows 7 64bit

Hi, thanks for improving this handy tool.
I have found a small bug.
When you start the Ruler it is partially transparent, but when you look at the Opacity submenu it says 100 %. It is not a big deal, just a little bit confusing (for new users). If you then click the 100 % option the ruler becomes fully opaque (which is OK).

ruler_opacity_bug

Change the Default settings

I was surprised not to see my changes when I started another ruler. Would be nice if you could change the default settings.

Flicker of opposite edge during resizing from left or top

When I resize the window by dragging left or top edge, the opposite edge (right or bottom respectively) shows noticeable flicker, is if it moves first with the direction of the drag and then goes back to its position.

I am not sure what is causing this behaviour. Tracing of the resize and paint events shows the correct expected location and size.

Measure at arbitrary angles

Hi. I like the app, but I'd like to be able to measure distances at arbitrary angles. The screenshot in the Microsoft Store shows this capability, but the app doesn't appear to have that functionality. How does one enable measurement at arbitrary angles?

Here's the screenshot from Microsoft Store:
image

This is what installed on my computer:
image

Change icon?

Hi everyone, this ruler is great - it does exactly what it says, it's easy to use, it's fast.

I just have one complaint: I use it at work, and have it pinned in taskbars, and the icon gets a lot of questions.

Can you change the icon to something that represents this wonderful app a little better? I'm happy to contribute one/some if you like. Thanks!

Constrain user movement axis with Shift

To put elements on screen in relation more easily, I propose the feature to constrain the rulter movement with the Shift key.
Dragging the ruler with the mouse while holding Shift would allow the ruler to move either up and down or left and right.

Powerpoint and other Microsoft products implements this feature with Shift.
Inkscape uses the Ctrl key instead.
I believe there are more programs offering a similar feature.

Modification

Hello, i use ruler for measuring foto (estimating length).
So i make quick and simple modification:

  • marker
  • custom unit and scale
    However, i'm not good with git. So i decide to send back the source instead
    units and marker

I still find a way to attach the file

Bug: If window is moved too quickly, it doesn't move

If you drag and drop the ruler above a certain speed, the move is not registered and the cursor begins to move independently of the ruler. It seems that it happens when you move the cursor at a speed high enough such that by the time the new position of the cursor is registered and sent to the ruler app, the cursor is no longer within the bounds of the ruler's draggable area.

Windows 10 x64 16299.371

Zoom ruler, is it possible?

Hi,

Most of the time I zoom my browser to 125% or 150%, I am wondering if it's possible to zoom the ruler to at same ratio as browser when I design the website?

100% on my browser would hurt my eyes when it's too small for rectangles & characters.

Thanks! Great ruler Btw

Double-click to change orientation

Double-click doesn't seem to be assigned to anything, and this seems like the obvious choice - it's the most common operation, and it would ease migration from my last tool. ;-)

Onmouse Down, Up and Move do not fire

OnMouseDown, OnMouseUp and OnMouseMove appearantly do not fire, i put break points in each and they were not hit the break points were on the first item in each, not sure what is happening

Does not stay topmost on startup

Although the context menu show "Topmost" being checked, ruler does not stay topmost on startup.
Topmost only becomes effective after unchecking/checking "Topmost" in the context menu.

Duplicate process fails to start

When running ruler.exe 1.4.4.0 when selecting duplicate the started process crashes even before UI displays.

OS Windows 10 Beta build 17063
no crash log is created

Context menu is not correctly duplicated

When duplicating a ruler the context menu does not copy correctly, if items are checked in original the setting is still held in duplicate however unchecked in duplicate ruler context menu

Version: 1.4.5.0
Window 10 insider build 17074

Tooltip does not hide when unchecking tooltip

I was looking into the bug or ruler resizes too quickly and i found an issue with the tooltip not hiding after enabling tooltip.

The tooltip will not display until initially checked then after checked it will not hide

My system is windows 10 desktop home edition preview build 17063

Is this a known issue?

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.