-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Welcome tab #13407
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
Open
Yubo-Cao
wants to merge
26
commits into
JabRef:main
Choose a base branch
from
Yubo-Cao:welcome-tab
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Welcome tab #13407
Changes from 14 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
22e3822
Initial integration of QuickSettings
7958489
Improve the look and feel of theme quick settings
189d030
Remove the unnecessary parameter e from the QuickSettingsButton
aeb258e
Add performance optimization and external application detection setti…
a117f49
Merge remote-tracking branch 'upstream/main' into welcome-tab
47af7fa
Remove the confirmation dialog after quick settings
7be327c
Update CHANGELOG.md
0b34b04
Add online service configuration and citation key removal
2259dfe
Refactor and get consistent language
37449af
Merge remote-tracking branch 'upstream/main' into welcome-tab
a759db9
Allow theme option to be selected by clicking on the WireFrame
ed3a001
Remove usage of JetBrains annotation
e296fd1
Retract change to Base.css
a0af2e8
Fix according to Trag
2e47ab0
Fix CHANGELOG
e8fbd25
Merge remote-tracking branch 'upstream/main' into welcome-tab
196f385
Style change according to the discussion
ff5dcf2
Integrate Walthrough to the WelcomeTab
5eb23ed
Merge remote-tracking branch 'upstream/main' into welcome-tab
5d3d719
Fix according to Trag bot
a831fb2
Slight refactoring and improve the push to application resolution
1b30f7f
Merge branch 'main' into welcome-tab
Yubo-Cao 1309675
Quick fix after the merge
Yubo-Cao 37eaf71
Quick improvement on the elegance of Wireframe styling
Yubo-Cao 792ce4e
Fix the spelling issue with Texmaker
Yubo-Cao 78e8148
Get rid of the qs icon button
Yubo-Cao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
jabgui/src/main/java/org/jabref/gui/welcome/ThemeWireFrameComponent.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package org.jabref.gui.welcome; | ||
|
||
import javafx.beans.property.SimpleStringProperty; | ||
import javafx.beans.property.StringProperty; | ||
import javafx.fxml.FXML; | ||
import javafx.scene.layout.VBox; | ||
|
||
import com.airhacks.afterburner.views.ViewLoader; | ||
|
||
public class ThemeWireFrameComponent extends VBox { | ||
|
||
private final StringProperty themeType = new SimpleStringProperty(); | ||
|
||
public ThemeWireFrameComponent() { | ||
ViewLoader.view(this) | ||
.root(this) | ||
.load(); | ||
|
||
themeType.addListener((_, _, newValue) -> { | ||
if (newValue != null) { | ||
updateTheme(); | ||
} | ||
}); | ||
} | ||
|
||
public ThemeWireFrameComponent(String themeType) { | ||
this(); | ||
setThemeType(themeType); | ||
} | ||
|
||
public void setThemeType(String themeType) { | ||
this.themeType.set(themeType); | ||
} | ||
|
||
@FXML | ||
private void initialize() { | ||
if (themeType.get() != null) { | ||
updateTheme(); | ||
} | ||
} | ||
|
||
private void updateTheme() { | ||
String theme = themeType.get(); | ||
if (theme == null) { | ||
return; | ||
} | ||
|
||
getStyleClass().removeIf(styleClass -> | ||
styleClass.startsWith("wireframe-light") || | ||
styleClass.startsWith("wireframe-dark") || | ||
styleClass.startsWith("wireframe-custom")); | ||
|
||
getStyleClass().add("wireframe-" + theme); | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.