Search dialog: The "Public" folder is now correctly browsed in all cases.

[DEVELOPMENT ENVIRONMENT]
* NEW: Option dialog: Use icon-only tool buttons for configuring highlight style.
* BUG: Search dialog: The "Public" folder is now correctly browsed in all cases.
* NEW: Redraw some icons.
This commit is contained in:
gambas 2019-06-14 01:27:16 +02:00
parent 8d76cc99ba
commit 3aa6b545a7
8 changed files with 12 additions and 9 deletions

View file

@ -76,7 +76,7 @@ Public Sub _new()
Dim iInd As Integer
Dim hHBox As HBox
Dim hColor As DrawingArea
Dim hButton As Button
Dim hButton As ToolButton
Dim aColors As Integer[]
cmbTheme.List = $aThemeName.Copy().Sort(gb.Language)
@ -179,13 +179,15 @@ Public Sub _new()
hHBox = New HBox(svwTheme)
hHBox.Tag = MTheme.ColorKeys[iInd]
hHBox.Height = 4 * Desktop.Scale
hHBox.Spacing = 4
'hHBox.Spacing = 4
hColor = New DrawingArea(hHBox) As "dwgStyle"
hColor.Expand = True
hColor.Border = Border.Plain
hButton = New Button(hHBox) As "btnStyle"
hButton.Text = ("Define...")
hButton.Width = Desktop.Scale * 16
hColor.Arrangement = Arrange.Horizontal
hColor.Invert = True
hButton = New ToolButton(hColor) As "btnStyle"
hButton.Picture = Picture["icon:/small/color"]
hButton.Resize(Desktop.Scale * 4, Desktop.Scale * 4)
Next
@ -720,8 +722,8 @@ End
Public Sub btnStyle_Click()
$hDraw = Last.Parent.Children[0]
$sStyle = Last.Parent.Tag
$hDraw = Last.Parent '.Children[0]
$sStyle = $hDraw.Parent.Tag
mnuPopup.Popup
End

View file

@ -426,6 +426,7 @@
}
{ HBox18 HBox
MoveScaled(0,16,84,4)
Background = Color.TextBackground
{ btnInsertLib ToolButton
MoveScaled(0,0,17,4)
AutoResize = True

View file

@ -759,9 +759,9 @@ Private Sub Browse(Optional bReplace As Boolean, Optional bAgain As Boolean)
For Each sFile In RDir(sDir).Sort()
If Left(sFile) = "." Then
If Left(sFile) = "." And If sFile Not Begins ".public/" Then
If OnlyData Then Continue
If Not (sFile Begins ".src/") Then Continue
If sFile Not Begins ".src/" Then Continue
Endif
If Right(sFile) = "~" Then Continue

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B