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

V35 #108

Merged
merged 6 commits into from
Sep 24, 2024
Merged

V35 #108

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install packages
run: sudo apt-get update -y && sudo apt-get install -y gettext
- name: build extension
run: make
- name: create zip package
run: make package
- name: store zip package artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: stocks-extension.zip
path: _build/stocks-extension.zip
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install packages
run: sudo apt-get update -y && sudo apt-get install -y gettext
- name: build extension
Expand Down
2 changes: 2 additions & 0 deletions [email protected]/components/buttons/buttonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const ButtonGroup = GObject.registerClass({

if (!enableScrollbar) {
this.set_policy(St.PolicyType.NEVER, St.PolicyType.NEVER)
} else {
this.set_policy(St.PolicyType.AUTOMATIC, St.PolicyType.AUTOMATIC)
}

// this.set_overlay_scrollbars(true)
Expand Down
6 changes: 3 additions & 3 deletions [email protected]/components/chart/chart.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Clutter from 'gi://Clutter'
import Cogl from 'gi://Cogl'
import GObject from 'gi://GObject'
import St from 'gi://St'

Expand Down Expand Up @@ -60,7 +60,7 @@ export const Chart = GObject.registerClass({
const fgColor = themeNode.get_foreground_color()

const newColorString = getComplementaryColor(fgColor.to_string().slice(1, 7), false)
const secondaryColor = Clutter.Color.from_string(`${newColorString}ff`)[1]
const secondaryColor = Cogl.Color.from_string(`${newColorString}ff`)[1]

const baseParams = {
cairoContext,
Expand Down Expand Up @@ -190,7 +190,7 @@ export const Chart = GObject.registerClass({
y1,
y2,
cairoContext,
color: Clutter.Color.from_string('#ff0000ff')[1],
color: Cogl.Color.from_string('#ff0000ff')[1],
lineWidth: 1.5
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const StockOverviewScreen = GObject.registerClass({

this._searchBar = new SearchBar({ mainEventHandler: this._mainEventHandler })
this._portfolioGroup = new ButtonGroup({ buttons: [], y_expand: false })
this._list = new FlatList({ id: 'stock_overview', persistScrollPosition: true })
this._list = new FlatList({ id: 'stock_overview', persistScrollPosition: false })

this.add_child(this._searchBar)
this.add_child(this._portfolioGroup)
Expand Down
5 changes: 3 additions & 2 deletions [email protected]/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"settings-schema": "org.gnome.shell.extensions.stocks",
"gettext-domain": "[email protected]",
"shell-version": [
"46"
"46",
"47"
],
"url": "https://github.com/cinatic/stocks-extension",
"uuid": "[email protected]",
"version": 9999
"version": 35
}
8 changes: 7 additions & 1 deletion [email protected]/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
max-height: 630px;
}

/* make position consistent to panel icon */
.stocks-extension .menu-stock-ticker {
max-width: 200px;
width: 200px;
}

.stocks-extension .menu-stock-ticker .stock-info-box,
.stocks-extension .menu-stock-ticker .stock-quote-box {
font-size: 1em;
Expand Down Expand Up @@ -82,7 +88,7 @@
}

.stocks-extension .search-bar .search-area-box StEntry {
width: 400px;
width: 300px;
}

.stocks-extension .search-bar .search-area-box .navigate-back-icon-button {
Expand Down