Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
orbutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nick Thomas
orbutils
Commits
196fc91b
Commit
196fc91b
authored
8 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Transparent launcher, resize chooser
parent
762d621f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/launcher/main.rs
+3
-3
3 additions, 3 deletions
src/launcher/main.rs
with
3 additions
and
3 deletions
src/launcher/main.rs
+
3
−
3
View file @
196fc91b
...
@@ -44,7 +44,7 @@ use package::Package;
...
@@ -44,7 +44,7 @@ use package::Package;
pub
mod
package
;
pub
mod
package
;
const
BAR_COLOR
:
Color
=
Color
::
rgb
(
40
,
45
,
57
);
const
BAR_COLOR
:
Color
=
Color
::
rgb
a
(
40
,
45
,
57
,
224
);
const
BAR_HIGHLIGHT_COLOR
:
Color
=
Color
::
rgb
(
80
,
86
,
102
);
const
BAR_HIGHLIGHT_COLOR
:
Color
=
Color
::
rgb
(
80
,
86
,
102
);
const
TEXT_COLOR
:
Color
=
Color
::
rgb
(
204
,
210
,
224
);
const
TEXT_COLOR
:
Color
=
Color
::
rgb
(
204
,
210
,
224
);
const
TEXT_HIGHLIGHT_COLOR
:
Color
=
Color
::
rgb
(
235
,
241
,
255
);
const
TEXT_HIGHLIGHT_COLOR
:
Color
=
Color
::
rgb
(
235
,
241
,
255
);
...
@@ -219,7 +219,7 @@ fn bar_main() {
...
@@ -219,7 +219,7 @@ fn bar_main() {
if
i
==
selected
{
if
i
==
selected
{
let
start_h
=
packages
.len
()
as
u32
*
32
;
let
start_h
=
packages
.len
()
as
u32
*
32
;
let
mut
start_window
=
Window
::
new
(
0
,
height
as
i32
-
32
-
start_h
as
i32
,
40
0
,
start_h
,
""
)
.unwrap
();
let
mut
start_window
=
Window
::
new
(
0
,
height
as
i32
-
32
-
start_h
as
i32
,
32
0
,
start_h
,
""
)
.unwrap
();
let
font
=
Font
::
find
(
None
,
None
,
None
)
.unwrap
();
let
font
=
Font
::
find
(
None
,
None
,
None
)
.unwrap
();
let
mut
selected
=
-
1
;
let
mut
selected
=
-
1
;
...
@@ -339,7 +339,7 @@ fn chooser_main(paths: env::Args) {
...
@@ -339,7 +339,7 @@ fn chooser_main(paths: env::Args) {
});
});
if
packages
.len
()
>
1
{
if
packages
.len
()
>
1
{
let
mut
window
=
Window
::
new
(
-
1
,
-
1
,
40
0
,
packages
.len
()
as
u32
*
32
,
path
)
.expect
(
"launcher: failed to open window"
);
let
mut
window
=
Window
::
new
(
-
1
,
-
1
,
32
0
,
packages
.len
()
as
u32
*
32
,
path
)
.expect
(
"launcher: failed to open window"
);
let
font
=
Font
::
find
(
None
,
None
,
None
)
.expect
(
"launcher: failed to open font"
);
let
font
=
Font
::
find
(
None
,
None
,
None
)
.expect
(
"launcher: failed to open font"
);
let
mut
selected
=
-
1
;
let
mut
selected
=
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment